scratchpad for maix amigo code snips
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Robey b33e3b28fa format 5 days ago
docs some translated docs 1 week ago
talos checkpoint some library work 1 week ago
README.md format 5 days ago
camera.py some notes 3 weeks ago
leds.py some notes 3 weeks ago
robey.py drawing test 3 weeks ago
touchscreen.py some notes 3 weeks ago
wifi.py some notes 3 weeks ago

README.md

maix amigo

hardware

pins & gpios

  • RGB lights: 14, 15, 17 (R/G/B)
  • flashlight: 32
  • I2C_PIN_SCL = 24
  • I2C_PIN_SDA = 27
  • go button = 16
  • back button = 23
  • next button = 20

wifi when attached to left socket:

  • 19: TX
  • 17: RX
  • 7: enable
  • 9: reset

some high-speed gpios are pre-allocated:

  • GPIOHS31 -> LCD_DC
  • GPIOHS30 -> LCD_RST
  • GPIOHS29 -> SD_CS
  • GPIOHS28 -> MIC_LED_CLK
  • GPIOHS27 -> MIC_LED_DATA

flash new firmware

robey's custom firmware with micropython 1.17, asyncio support, and faster font rendering (draw_bit_sprite):

the amigo we have is this:

  • (MaixPy)/projects/maixpy_amigo_ips

how to build (instructions):

firmware binary ends up here:

  • (MaixPy)/projects/maixpy_amigo_ips/build/maixpy.bin

flash it with kflash:

  • kflash -b 1500000 -p /dev/ttyUSB1 projects/maixpy_amigo_ips/build/maixpy.bin

connect to the repl with tio:

  • tio -b 115200 /dev/ttyUSB1

or a fancier interface that lets you copy files around too:

  • rshell -p /dev/ttyUSB1

robey's custom firmware with micropython 1.17, asyncio support, and faster font rendering (draw_bit_sprite):

heap

>>> Maix.utils.heap_free()
1495040
>>> Maix.utils.gc_heap_size()
524288
>>> gc.mem_free()
479008
>>> gc.mem_alloc()
39264

buttons

touch screen

power management / battery

wifi

  • pins 19, 17 -> UART2_TX, UART2_RX
  • pin 7 -> GPIO0 (en)
  • pin 9 -> GPIO1 (reset)