NOTE: FILE NAMES HAVE BEEN CHANGED FROM ".PY" TO ".TXT" TO PREVENT WEBSERVER ERRORS OF "502 INVALID RESPONSE" | ||
Query | REPL Commands or .py Program | Example Output |
Which board am I using? | REPL_Which-Board.txt | Adafruit Feather M4 Express with samd51j19 |
Display built-in modules | REPL_help(modules).txt | digitalio displayio analogio terminalio keypad rgbmatrix |
Map microcontroller pins to logical & function names | uC_pin_to_board_mappings.txt | uC.pin.PA23 board.D13 board.LED |
Load common libraries | common_libs.txt | <no output> |
Time how long something takes | Time_how_long_something_takes.txt | "do_something" took 8.447266 seconds |
Read a button switch | Read_Button.txt | True True False True |
Debounce a button | Debounce_Button.txt | Pressed! Released! |
Debounce a list of buttons | Debounce_Button_List.txt | Button 10 Pressed! Button 10 Released! |
Read a potentiometer | Read_Potentiometer.txt | (1.67755, 33248) |
Read a touch pad | Read_TouchPin.txt | Touched! |
Flash an LED on and off | LED_high_low.txt | LED flashes every 0.5s |
Output an analog signal on a DAC or PWM pin | Output_analog_on_DAC_or_PWM.txt | Analog output signal |
Light up a Neopixel LED strip | NeoPixel_LED_Light_Strip.txt | Neopixel (addressable LEDs) LED strip illuminates |
Get CIRCUITPY disk size and free space | Get_CircuitPY_Disk_Stats.txt | Disk size in MB 1.97 Free space in MB 0.86 |
Print to USB serial | Print_to_USB.txt | Printing comma-separated values: 0, 1, 2, 3, 4, 5, |
Print user input from USB serial | Read_user_input_from_USB_serial.txt | 4862... qwerty |