Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 511 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 511 Bytes

Blinking a led

Here is a simple example to start with SPIN : making a led blink.

Hardware setup and requirements

Schematic figure 1

You will need :

  • 1 spin
  • A usb-c cable to supply power to the spin, and also upload the code from computer

Software setup

The led is toggled in the background task called each 1s, which means the leed will blink at the rate of 1s :

    spin.led.toggle();

Expected result

Visual result : the led should turn on and off.