RGB.py 339 B

123456789101112131415161718192021222324
  1. import machine
  2. import PikaStdLib
  3. time = machine.Time()
  4. adc = machine.ADC()
  5. pin = machine.GPIO()
  6. pwm = machine.PWM()
  7. uart = machine.UART()
  8. rgb = machine.RGB()
  9. mem = PikaStdLib.MemChecker()
  10. rgb.init()
  11. rgb.enable()
  12. print('hello 2')
  13. print('mem used max:')
  14. mem.max()
  15. while True:
  16. print('flowing')
  17. rgb.flow()
  18. time.sleep_ms(100)