initial raspi

This commit is contained in:
2020-08-02 19:12:24 +02:00
parent f6e9e251e9
commit 0ac35a4bc9
16 changed files with 1224 additions and 0 deletions

17
RpiLedBars/main.py Normal file
View File

@ -0,0 +1,17 @@
#! /usr/bin/env python3
import board
import neopixel
import time
def main():
pixels = neopixel.NeoPixel(board.D21, 30, brightness=0.2, auto_write=False)
for i in range(0, 300):
pixels[i] = (100, 0, 0)
pixels.show()
time.sleep(2)
print("ok\n")
if __name__ == "__main__":
main()