parallaxinc / cyberbot

Firmware, library, and loader code for cyberbot hardware
MIT License
8 stars 0 forks source link

PWR light in position 1 stays on when switch is set to 0 with USB connected #14

Closed AndyLindsay closed 5 years ago

AndyLindsay commented 5 years ago

Rev A4 Board with firmware+library 0.3.2 does not turn off when PWR is switched from 1 to 0 with USB connected.

  1. Set PWR to 1
  2. Use parallax.py library from 0.3.4 branch's library folder if you are using a Rev A board or from the master branch's library folder if you are using the rev A4 board.
  3. Run Test_Piezo_Beep_Then_Loop.py
  4. Leave USB connected
  5. Set PWR to 0
  6. The PWR 1 light stays on. Although slightly dimmer, it's not enough.
# Test_Piezo_Beep_Then_Loop.py

from parallax import *

bot(22).frequency_out(300, 2000)

while True:
    bot(21).digital_write(1)
    bot(21).digital_write(0)
AndyLindsay commented 5 years ago

Addressed in cyberbot-0.3.7. See branch and zipped code.

AndyLindsay commented 5 years ago

This is a duplicate. Other instance is still open and ready for testing.