This blog post will explain how to capture hex values from keypresses on an IR remote. First, the required libraries have to be imported. A variable named pin_ir has to be initialized to pin 0 and set as an input. The callback function is declared and it sorts out repeat…
Category: Microcontrollers
Detect Keypresses From IR Remote
This blog post will explain how to detect keypresses from an IR remote. First, the required libraries need to be imported. A variable named pin_ir has to be initialized to pin 0 and set as an input. The callback function is declared and it sorts out repeat codes from codes…
Display Temperature And Air Pressure
This blog post will explain how to use the Picobricks temperature and air pressure sensor. First, the required libraries have to be imported. Then variables have to be declared to setup the pins on the oled screen and temperature sensor. Then a function is needed to convert celsius to fahrenheit….
Operate DC Motors With Motor Driver
This blog post will explain how to use a motor driver to control two DC motors. The MicroPython code listed below is used to accomplish this task. Functions for directions such as stop, forward, left, and right have to be declared. Pins 21 and 22 have to setup to output…
Write Text To OLED Screen
This blog post will explain how to use a Raspberry Pico W and MicroPython to write text characters to an OLED screen. The code that is displayed below will accomplish this task. First, the required libraries will have to be declared. I2C will be initalized by declaring a variable and…