Created
February 5, 2023 04:55
-
-
Save jaygreco/ef6414000a9033b404bdd093d52cdce5 to your computer and use it in GitHub Desktop.
Circuitpython example for Bit-C PRO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import board | |
| import digitalio | |
| led_red = digitalio.DigitalInOut(board.LED_RED) | |
| led_green = digitalio.DigitalInOut(board.LED_GREEN) | |
| led_blue = digitalio.DigitalInOut(board.LED_BLUE) | |
| led_red.direction = digitalio.Direction.OUTPUT | |
| led_green.direction = digitalio.Direction.OUTPUT | |
| led_blue.direction = digitalio.Direction.OUTPUT | |
| while True: | |
| led_red.value = not led_red.value | |
| led_green.value = not led_green.value | |
| led_blue.value = not led_blue.value | |
| time.sleep(0.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment