Libraries
What code in each IDE can use in the Lab: the Arduino libraries, the ESP-IDF components, the STM32 HAL modules and MicroPython's modules, each simulated, partly simulated or not.
Arduino IDE
- DHT (simulated): Temperature and humidity from the DHT22.
- LiquidCrystal_I2C (simulated): A 16x2 character LCD on an I2C backpack.
- Adafruit SSD1306 (simulated): The 128x64 OLED, drawn with Adafruit GFX.
- Adafruit NeoPixel (simulated): NeoPixels: a single LED, the ring and the 8x8 matrix.
- Keypad (simulated): The 4x4 membrane keypad.
- RTClib (simulated): The DS1307 clock: RTC_DS1307 and DateTime.
- HX711 (simulated): A load cell through the HX711 amplifier.
- ArgynixCloud (simulated): Readings to ARGYNIX Cloud and commands back, with Live in Cloud.
- Wire (simulated): I2C, to the bench’s I2C parts and to other boards.
- Servo (simulated): Hobby servos. ESP32Servo.h works on the ESP32 boards too.
- EEPROM (simulated): The board’s EEPROM, read and written byte by byte.
- WiFi (partly): Wi-Fi on the boards that have it: the ESP32s (not the H2 and P4), the Pico Ws and the Nano ESP32. WiFiS3.h on the Uno R4 WiFi.
- ESP-NOW (simulated): ESP32 boards on one bench send to each other: to a peer’s MAC or to all, with the send and receive callbacks.
- BluetoothSerial (simulated): Classic Bluetooth serial on the original ESP32, to the bench’s phone.
- BLE (Arduino-ESP32) (simulated): Bluetooth LE on the ESP32s: a server the bench’s phone or another board connects to, a scan that finds the other boards advertising, a client that reads, writes and subscribes.
- NimBLE-Arduino (simulated): The same on NimBLE-Arduino’s API: server, scan and client.
- ArduinoBLE (simulated): Bluetooth LE as ArduinoBLE has it, peripheral and central: on the Uno R4 WiFi and the ESP32s.
- BLE (arduino-pico) (simulated): Bluetooth LE on the Pico W and Pico 2 W: BLE.server(), BLE.scan() and BLE.client().
- TWAI (CAN) (simulated): The ESP32’s own CAN controller (ESP-IDF’s TWAI driver), through a transceiver on the bench (SN65HVD230): to MCP2515 modules and other ESP32s.
- SPI (simulated): The SPI bus, to the bench’s SPI parts: displays, SD, RC522, nRF24, MCP2515, LoRa, W5500.
- SoftwareSerial (simulated): A serial port on any two pins.
- Stepper (simulated): The stepper motor, through its driver pins.
- LiquidCrystal (simulated): A 16x2 LCD wired in parallel; it latches on E as the real one does.
- Adafruit GFX (simulated): Text, lines and shapes for the OLED.
ESP-IDF
- Tasks (simulated): Tasks, delays, priorities and notifications.
- Queues (simulated): Queues between tasks and from interrupts.
- Semaphores and mutexes (simulated): Binary and counting semaphores, mutexes.
- Event groups (simulated): Bits that tasks wait on.
- Software timers (simulated): One-shot and periodic timers on the timer task.
- Logging (simulated): ESP_LOGI and the rest, with the tick time and tag, to the Serial tab.
- Errors and checks (simulated): esp_err_t, ESP_ERROR_CHECK (it stops the program, as on the chip).
- System (simulated): esp_restart, the reset reason, free heap.
- Chip information (simulated): The chip, its cores and features; esp_flash, esp_mac and esp_random beside it.
- High-resolution timer (simulated): esp_timer callbacks and the microsecond clock.
- Sleep (simulated): Deep sleep (the program starts again, RTC memory kept) and light sleep, woken by a timer or a pin.
- NVS (simulated): Key-value storage that survives restarts and deep sleep.
- Task watchdog (simulated): Flags a task that hogs the core for 5 s.
- GPIO (simulated): Pins, pulls, and interrupts through the ISR service.
- LEDC (simulated): PWM, with hardware fades and their callback.
- ADC oneshot (simulated): Readings with each attenuation’s range, and calibration to millivolts.
- I2C master (simulated): The I2C master driver (v5.2 and later), to the bench’s I2C parts.
- General-purpose timer (simulated): Counters with alarms and their callbacks.
- UART (partly): UART reads and writes.
- TWAI (CAN) (simulated): The ESP32’s own CAN controller, through a transceiver on the bench (SN65HVD230): to MCP2515 modules and other ESP32s.
- ESP-NOW (simulated): Frames between the bench’s ESP32 boards: peers, to a MAC or to all, the callbacks.
- LED strip (simulated): The board’s RGB LED and NeoPixels, as the led_strip component drives them.
- Wi-Fi (partly): Station mode: scan, connect, an IP, with esp_event and esp_netif.
- ARGYNIX Cloud (simulated): Readings to ARGYNIX Cloud and commands back, with Live in Cloud.
- SPI master and slave (not simulated): The build stops at its #include and says it is not simulated.
- RMT (not simulated): The build stops at its #include and says it is not simulated.
- I2S (not simulated): The build stops at its #include and says it is not simulated.
- Touch pads (not simulated): The build stops at its #include and says it is not simulated.
- MCPWM (not simulated): The build stops at its #include and says it is not simulated.
- Pulse counter (not simulated): The build stops at its #include and says it is not simulated.
- HTTP client and server (not simulated): The build stops at its #include and says it is not simulated.
- OTA updates (not simulated): The build stops at its #include and says it is not simulated.
- MQTT (not simulated): The build stops at its #include and says it is not simulated.
- Sockets (lwIP) (not simulated): The build stops at its #include and says it is not simulated.
- Bluetooth and NimBLE (not simulated): The build stops at its #include and says it is not simulated.
- SPIFFS and FAT (not simulated): The build stops at its #include and says it is not simulated.
STM32CubeIDE
- HAL core (simulated): The 1 ms tick from SysTick, as its registers set it.
- RCC (simulated): The clock tree from HSE, HSI or MSI through the PLL: SystemCoreClock, the bus and timer clocks.
- Cortex and NVIC (simulated): An interrupt handler runs only when its NVIC line is on.
- IWDG (simulated): Resets the board when it is not refreshed in time.
- PWR (partly): Sleep and stop wait for the next interrupt.
- FLASH (partly): Unlock and lock.
- GPIO and EXTI (simulated): Pins in each family’s registers; EXTI lines through the project’s EXTIx_IRQHandler.
- UART (simulated): Blocking, _IT, _DMA and ReceiveToIdle, with their callbacks.
- I2C (simulated): The master side, blocking, _IT and _DMA, to the bench’s I2C parts.
- ADC (simulated): Polled, _IT and _DMA conversions, with scans of several channels.
- TIM (partly): Update interrupts, and PWM on the pin set as the channel’s alternate function.
- DAC (partly): A level on PA4 or PA5.
- DMA (partly): Transfers and their callbacks.
- SPI (partly): The calls return at once.
- RTC (simulated): Time, date and the backup registers.
- RNG and CRC (simulated): Random numbers, and CRC-32 as the STM32 computes it.
- CMSIS registers (partly): GPIO, RCC (a clock started by hand counts), USART, SysTick and the reset request.
- USB, CAN, SDIO, Ethernet (not simulated): Not simulated: their calls do not link.
MicroPython
- Pin (simulated): GPIOs in and out, pulls, interrupts (irq), the LED as Pin("LED").
- ADC (simulated): GP26 to GP28 (ADC 0 to 2) read the circuit’s volts.
- PWM (simulated): Duty and frequency on any pin: an LED dims, a buzzer sounds, a servo turns.
- I2C (partly): Both blocks reach the bench’s I2C parts.
- SPI (simulated): To the parts on the pins the program gives SPI: a TFT, a MAX7219, an SD card.
- UART (partly): UART0 to the Serial page.
- Timer (simulated): Periodic and one-shot callbacks.
- rp2 and PIO (simulated): PIO programs on the state machines: a NeoPixel strip, a custom protocol.
- neopixel (simulated): WS2812 strips and rings, their bits timed by machine.bitstream.
- time (simulated): sleep, sleep_ms, ticks_ms and ticks_diff.
- asyncio (simulated): Coroutines and tasks.
- framebuf (simulated): Drawing into a buffer for a display.
- os and files (partly): The flash filesystem: the project’s other files are on it, to import or open.
- network (Wi-Fi) (not simulated): Not on the Pico: Wi-Fi is the Pico W’s, whose radio is not emulated.