LEDs – Beyond the Basics

Description Most of us begin our experiments with microcontrollers by blinking an LED; this is the microcontroller version of the “Hello, World!” program that is introduced in traditional computer programming training. On the P2, we can blink an LED like this: con LED_PIN = 0 pub main() repeat pinhigh(LED_PIN) waitms(250) pinlow(LED_PIN) waitms(750) { Tip! P2 […]

Loading...