kopia lustrzana https://github.com/pimoroni/pimoroni-pico
PicoSystem: Move LED after screen init
The screen init (C++ bindings) was trouncing the PWM setup (Python) for the RGB LED. This is because the backlight pin (12) and LED G pin (13) share the same PWM slice. This does not seem to affect the screen backlight functionality.pull/211/head
rodzic
44b45e8f00
commit
321b9ad4af
|
@ -65,10 +65,6 @@ def buzz(freq, duty=0.5):
|
|||
buzzer.duty_u16(int(65535 * duty))
|
||||
|
||||
|
||||
# PicoSystem LED
|
||||
led = pimoroni.RGBLED(PICOSYSTEM_LED_R, PICOSYSTEM_LED_G, PICOSYSTEM_LED_B, invert=False)
|
||||
led.set_rgb(0, 0, 0)
|
||||
|
||||
# PicoSystem Status
|
||||
battery_sense = pimoroni.Analog(PICOSYSTEM_BAT_SENSE)
|
||||
charge_status = machine.Pin(PICOSYSTEM_CHARGE_STATUS, machine.Pin.IN)
|
||||
|
@ -91,3 +87,7 @@ display = BreakoutColourLCD240x240(
|
|||
|
||||
display.update()
|
||||
display.set_backlight(1.0)
|
||||
|
||||
# PicoSystem LED
|
||||
led = pimoroni.RGBLED(PICOSYSTEM_LED_R, PICOSYSTEM_LED_G, PICOSYSTEM_LED_B, invert=False)
|
||||
led.set_rgb(0, 0, 0)
|
||||
|
|
Ładowanie…
Reference in New Issue