prjbrook

Pi pico Start

Jun 19th, 2022
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. # SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries && worked with
  2. # &&Pi pico Mon Jun 20 12:44:38 NZST 2022
  3. #
  4. # SPDX-License-Identifier: MIT
  5. #Pb worked 16.6.22
  6. """Example for Pico. Blinks the built-in LED."""
  7. import time
  8. import board
  9. import digitalio
  10.  
  11. led = digitalio.DigitalInOut(board.LED)
  12. led.direction = digitalio.Direction.OUTPUT
  13. x=1
  14. while True:
  15. # led.value = True
  16. led.value = True
  17. x=x+1
  18. time.sleep(2.5)
  19. print("1CEEFFBOnnnnmmxxx",x)
  20. led.value = False
  21. print("OFFFFx1")
  22. # time.sleep(0.1)
  23. time.sleep(0.1)
  24. # Write your code here :-)
Advertisement
Add Comment
Please, Sign In to add comment