[{"element_type":"text","content":"\n  \n  \n  \n  \n  \n        \u003ch1\u003eAbout the Pixel Kit\u003c/h1\u003e\n\u003cp\u003eThe retail Pixel Kit uses an ESP32 (The classic one) (ESP-WROOM-32) with 4MB of flash, which makes it very easy to put things like WLED, Arduino, MicroPython, and CircuitPython onto it.\u003c/p\u003e\n      \n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n        \u003ch1\u003eFlashing CircuitPython onto Your Pixel Kit\u003c/h1\u003e\n\u003cp\u003eTo flash CircuitPython onto it, either use Thonny (A python editor for basically anything) or esptool (A Python-based CLI tool for ESP32)\u003c/p\u003e\n\u003ch2\u003eThonny:\u003c/h2\u003e\n\u003col\u003e\n\u003cli style=\"text-align: left;\"\u003eClick Tools (in bar on top)\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eSelect \"Options...\"\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eSelect \"Interpreter\"\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eClick the dropdown and select CircuitPython (generic)\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eClick the underlined text \"esptool\", this tells Thonny to flash to ESP32\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eSelect the COM (Windows) or dev/cu.usbmodem (Mac) (Could also be dev/tty.usbserial) port in the Target Port dropdown\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eFor family select ESP32 (This is what the Pixel Kit has)\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eFor variant select DOIT • ESP32 Development Board\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eSelect what CircuitPython version you want in the version dropdown\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eClick Install\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eClose the installer window\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eSelect the port for your device\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eClick the stop button (Stop/Restart Backend)\u003c/li\u003e\n\u003cli style=\"text-align: left;\"\u003eInstall the necessary libraries from the bundle in their documentation. neopixel, adafruit_framebuf, adafruit_pixel_framebuf, and led_animation\u003c/li\u003e\n\u003cli\u003eDownload the CircuitPython Pixel Kit helper libraries from my \u003ca href=\"https://github.com/colinvail6/awesome-pixelkit/tree/main/src/circuitpython\"\u003eGitHub repo\u003c/a\u003e\n\u003c/li\u003e\n\u003cli\u003eInstall it to /lib\u003c/li\u003e\n\u003cli\u003ePlay around with the Pixel Kit!\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch2\u003eesptool:\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eInstall esptool. This can be done using pip install esptool (Python 2 and lower) or pip3 install esptool (Python 3 and newer)\u003c/li\u003e\n\u003cli\u003eOpen your Terminal app (Terminal on Mac, Command Prompt on Windows, Bash on Linux)\u003c/li\u003e\n\u003cli\u003eErase the flash on your board. This can be done using esptool --port %PORT% --chip esp32 erase_flash (Python 2 or lower) or python -m esptool --port %PORT% --chip esp32 erase_flash (Python 3 and newer)\u003c/li\u003e\n\u003cli\u003eDownload the CircuitPython binary from \u003ca href=\"https://circuitpython.org/board/doit_esp32_devkit_v1/\"\u003ehttps://circuitpython.org/board/doit_esp32_devkit_v1/\u003c/a\u003e\n\u003c/li\u003e\n\u003cli\u003eRun cd Downloads\u003c/li\u003e\n\u003cli\u003eFlash the CircuitPython binary to your Pixel Kit. This can be done using esptool --port %PORT% --chip esp32 write_flash -z 0x0 adafruit-circuitpython-doit_esp32_devkit_v1-en_US-10.0.3.bin (Python 2 or lower) or python -m esptool --port %PORT% --chip esp32 write_flash -z 0x0 adafruit-circuitpython-doit_esp32_devkit_v1-en_US-10.0.3.bin (Python 3 and newer)\u003c/li\u003e\n\u003cli\u003eDownload the CircuitPython Pixel Kit helper libraries from my \u003ca href=\"https://github.com/colinvail6/awesome-pixelkit/tree/main/src/circuitpython\"\u003eGitHub repo\u003c/a\u003e\n\u003c/li\u003e\n\u003cli\u003eInstall it to /lib\u003c/li\u003e\n\u003cli\u003ePlay around with the Pixel Kit!\u003c/li\u003e\n\u003c/ol\u003e\n      \n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n        \u003ch1\u003ePin definitions\u003c/h1\u003e\n\u003cp\u003epixel_pin = board.D4\u003cbr\u003eWIDTH = 16\u003cbr\u003eHEIGHT = 8\u003cbr\u003edial_pin = board.VP # In CircuitPython, GPIO 36 is board.VP\u003cbr\u003emicrophone_pin = board.VN # In CircuitPython, GPIO 39 is board.VN\u003cbr\u003ejoystick_up_pin = board.D35\u003cbr\u003ejoystick_down_pin = board.D34\u003cbr\u003ejoystick_left_pin = board.D26\u003cbr\u003ejoystick_right_pin = board.D25\u003cbr\u003ejoystick_click_pin = board.D27\u003cbr\u003ebutton_b_pin = board.D18\u003cbr\u003ebutton_a_pin = board.D23\u003cbr\u003ebutton_reset_pin = board.D5\u003cbr\u003e\u003cspan\u003ebuzzer_pin = board.D22\u003c/span\u003e\u003c/p\u003e\n      \n\n\n","metadata":{}}]