-
-
Notifications
You must be signed in to change notification settings - Fork 0
Libraries
Libraries are important, since they allow to interact with the hardware through the use of functions, thus reducing the size and complexity of the code.
You can save all the libraries in this repository if you wish or only take the ones you need.
The following is a list of the libraries by category, their interface and for which hardware they are intended for
-
Video
There are no libraries for video, since it is embedded in boot.py. -
Audio
music76489.py -> for SN76489 + 74HC595. SPI interface
musicavray.py -> for ATmega8/48/88/168/328. UART interface
musicz284.py -> for YMZ284 + 74HC595. SPI interface
music810.py -> for LPC810/812. I2C interface
wt588d.py -> for WT588D. Three-wire serial port control mode or One-wire serial port control mode -
IO
sr74hc595_spi.py -> for 74HC595. SPI interface
sr74hc595_bitbang.py -> for 74HC595. Bit banging interface
pcf8574.py -> for pcf8574. I2C interface -
Memory
flash_spi.py -> for 25xxnnnn EEPROM / FLASH. SPI interface
bdevice.py -> MicroPython drivers for memory chips. This file must be placed in the root of the internal memory of the microcontroller.
- SDK
- Important system files
The boot.py file
The main.py file
Libraries
- MCU
What is MicroPython?
How to install MicroPython
- Video
TMS9918 compatible VDP parts
TMS9918 VDP display modes
Color palette
Video modes
Video adapters
MGB file format
- Video API
vdp_set_bdcolor
vdp_print
vdp_cls
vdp_mset
vdp_textcolor
vdp_sprite_set_position
vdp_text_wrap
set_write_address
write_byte_to_VRAM
vdp_init
- Audio
Music related troubleshooting
AY-3-8910 compatible PSG parts
How to flash LPC810 or LPC812 MCU
How to flash ATmega8, ATmega48, ATmega88, ATmega168 or ATmega328
AY-3-8910
Konami SCC
WT588D
Clock sources
SoundCortex limitations
VGM file format
WT588D's BUSY output
- Audio API
music.reset
music.load_vgm
music.tick
music.set_vol
music.play_freq
music.play_notes
voice.send_threelines
voice.send_oneline
- Input
PISO shift register compatible gamepad parts
PS2 keyboard scancodes
- Input API
- Memory
Memory related troubleshooting
Video RAM
- Memory API