Skip to content

whatdtech/MicroPython-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MicroPython-Examples

This repo features examples for MicroPython similar to Arduino.

###00.Basics

BareMinimum
A template that serves as a starting point

HelloWorld
Turns on LED 4 (the blue LED). An LED connected to pin 2 should work as well.

###01.LEDs

Blink

Replicates Arduino's Blink sketch exactly (uses .on() and .off())

Turns on LED 4 for 1000 milliseconds (1 second);
Turns off LED 4 for 1000 milliseconds;
loops

BlinkWithoutDelay
Replicates Arduino's BlinkWithoutDelay sketch (uses .toggle())

Same effect as Blink, but uses pyb.millis()

BlinkWithToggle
Same as Blink, but uses .toggle()

Fade Similar to Arduino's Fade sketch

Fades LED 4 on and off

About

Examples for MicroPython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%