![]() ![]() To make the current flow in the right direction, the anode shall be connected to the positive voltage and the cathode to the negative. the cathode is the electrode through which the current flows out on a “through hole” LED, the cathode is the shorter wire.the anode is the electrode through which the current flows-in on a “through hole” LED, the anode is the longer wire.Like diodes, LEDs have an anode and a cathode: A LED is a diode which emits light when is fed with a current in a proper direction. I am quite sure you perfectly know what a LED is and how it works. Theory inside The Light Emitting Diode The scheme of a Light Emitting Diode In case you don’t, we have some good references here too ( Using STM32 GPIO with ChibiOS PAL Driver). You should know how STM32 GPIO peripheral works and how to exploit this flexible Input\Output controller with ChibiOS’ PAL driver.If you are not able to do that, you ought to take a look to From 0 to STM32, Developing on STM32: introducing ChibiStudio and A close look to ChibiOS demos for STM32. ![]() launch the tool-chain import, duplicate and create a new project flash and run and similar). You should have an STM32 development kit and be able to do basic stuff with ChibiStudio (e.g.To understand this article with proficiency you should match few requirements: Because of that, usually, every embedded development board is equipped with a LED marked as “User LED” and this means that it is actually connected to a GPIO pin you can drive via software. The LED can be considered the simplest peripheral output you can connect to a microcontroller. This article includes some simple examples to understand how to deal with LEDs when you are approaching STM32 and ChibiOS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |