Wukong2040 expansion board is a new product developed by ELECFREAKS. Are you very interested in how to use it? The following is one of the cases of Wukong2040 expansion board: How to use Wukong2040 to drive OLED screen.
Install thonny editor to use wukong 2040 extension to create an API. You can download the code related to Raspberry Pi pico on the website of citcuitpython for operation.
The I2C integrated circuit bus, a serial communication bus using a multi-master-slave architecture, was developed by Philips in the 1980s to allow motherboards and embedded systems to connect low-speed peripherals.
The correct pronunciation is "I square C" or "I square C", while "I two C" is the wrong pronunciation.
In the last -term we have used ADCs and internal temperature sensors to read pin voltages and on-chip temperatures to implement the process of converting analog signals into digital signals. By now, having learned to use PWM and ADC, these set the stage for our Pico:ed to work in different situations.
Pulse-Width Modulation, or PWM for short, is a scheme that uses digital signals to simulate changes in analog signals, as most of the signals in our natural life are analog, such as brightness, speed, volume, etc.
Based on the hardware in the previous section, some of you will ask exactly how the LED lighting is achieved.
The answer is to use a GPIO peripheral.
Here you need to understand a concept, the full name of peripherals is external devices.
In the early days, UART, LCD controller, and so on, and the CPU is not on a chip, so that is called external devices.
Pico:ed is powered by the latest MCU release from the Raspberry Pi Foundation (RP2040), the first microcontroller for the Raspberry Pi. It brings our signature value of high performance, low cost and ease of use to the microcontroller space.
Often, without our eyes and ears, our hands and feet are not as accurate as they could be, because we get feedback through our eyes and ears. Our brain can use the feedback to constantly correct the movement of our hands and feet, creating closed-loop feedback. If we need to use PWM to precisely control the brightness of an LED, we need feedback, but the brightness of the LED is an analogue signal.
Our MCU is not able to process the analogue signal directly, it needs to be converted into a digital signal before it can be processed, so how can we convert the analogue signal into a digital signal? This is where Pico:ed's ADC function shines through.