PyBoard emulator
Note
very early development state
- Run any main.py script.
- See what happens to the pyboard in the GUI or
- Run in batch mode and optionally
- Simulate hardware interaction from a script.
$ pip install -r requirements.txt $ sudo apt-get install python3-tk
$ PYBOLATOR_MAIN=path/to/main.py python3 pybolator.py
$ PYBOLATOR_MAIN=path/to/main.py python3 pybolator.py --batch
optionally pass a pyb script
$ PYBOLATOR_MAIN=path/to/main.py python3 pybolator.py --batch tests/script.pyb
$ mkvirtualenv --python=/path/to/python3.x pybolator $ workon pybolator $ PYBOLATOR_MAIN=test.py python pybolator.py
- delay(ms)
- udelay(us)
- millis()
- micros()
- elapsed_millis(start)
- elapsed_micros(start)
- accel.x()
- accel.y()
- lcd(skin_position)
- lcd.contrast(value)
- lcd.fill(colour)
- lcd.get(x, y)
- lcd.light(value)
- lcd.pixel(x, y, colour)
- lcd.show()
- lcd.text(str, x, y, colour)
- lcd.write(str)
- led.intensity([value])
- led.off()
- led.on()
- led.toggle()
- switch()
- switch.callback(fun)
- hard_reset()
- bootloader()
- disable_irq()
- enable_irq(state=True)
- freq([sysclk[, hclk[, pclk1[, pclk2]]]])
- wfi()
- stop()
- standby()
- have_cdc()
- hid((buttons, x, y, z))
- info([dump_alloc_table])
- main(filename)
- mount(device, mountpoint, *, readonly=False, mkfs=False)
- repl_uart(uart)
- rng()
- sync()
- unique_id()
- accel.filtered_xyz()
- accel.tilt()
- accel.z()
- lcd.command(instr_data, buf)