How to code Knight Rider with STM32?
Watch our YouTube video for this project:
Read moreHello everyone, Happy New Year all!
We want to share a video with you about coding Knight Rider with STM32. Here is a video you can watch for coding Knight Rider with Mbed OS.
As you know, we have a circuit which you can code easily Knight Rider without dealing with the breadboard circuit.
Circle Electronic NOOB Series Knight Rider
Circle Electronic has a product group for the who are new to coding circuits. Circle Electronic developing products for beginners. You can learn coding easily with these circuits. Visit NOOB Series webpage.
Circle Electronic NOOB Series
Codes
#include "mbed.h"
BusOut leds(PC_8,PC_6,PC_5,PA_12,PA_11,PB_12,PB_2,PB_1);
int ms=100;
int main(){
while(1){
for(int i=0; i<=7; i++){
leds[i]=1;
wait_ms(ms);
leds[i]=0;
}
for(int i=7; i>=0; i--){
leds[i]=1;
wait_ms(ms);
leds[i]=0;
}
}
}
Our Web Page10 projects • 9 followers
Circle Electronic Maker products, DIY Electronics and kits.
#makersgonnamake
Comments
Please log in or sign up to comment.