How to make Knight Rider with STM32F411 on Mbed

Learn to code Knight Rider with STM32 and Circle Electronic Knight Rider kit


Hello 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 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.

Watch our YouTube video for this project:


Knight Rider Product Page YouTube Video Tindie Link


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;
            }
        }
    }


5 views0 comments

Recent Posts

See All

NEW RELEASES

Subscribe for the latest news from our company.

  • Grey YouTube Icon
  • Gri Instagram Simge
  • Grey Twitter Icon
  • Gri LinkedIn Simge

© 2020 BY CIRCLE ELECTRONIC.