[milkv] 2. Add and test mpu6050 driver

Foreword This chapter introduces the driver addition and testing of mpu6050. The driver does not use the driver provided by the sdk. On the one hand, you need to configure the irq. On the other hand, you can learn how to add the driver through the ko method. 1. Reference articles Driver and test file […]

ESP32/ESP8266 drives 1.8″tft_oled screen imitation digital tube clock based on Arduino framework

ESP32/ESP8266 drives 1.8″tft_oled screen imitation digital tube clock based on Arduino framework Related article “ESP32 drives I2C OLED time display based on U8g2 under Arduino framework” Effect demonstration: The screen display part uses the TFT_eSPI library driver and uses the unique font display that comes with the library. The screen adopts 128*160 1.8″tft_Oled screen. This […]

2.3 Windows driver development: kernel string conversion method

In kernel programming, strings have two formats: ANSI_STRING and UNICODE_STRING. These two formats are safe versions of string structures introduced by Microsoft and are also formats recommended by Microsoft. , usually the type represented by ANSI_STRING is char *, which is a string in multi-byte mode of ANSI, and UNICODE_STRING represents wchar*, which is a […]

HP203B air pressure temperature sensor driver

Without further ado, let’s get straight to the code. The device tree code is as follows. It should be noted that the I2C device address described in the device is 7 bits, not 8 bits. Otherwise, the I2C subsystem will prompt that the device cannot be found when initializing. i2c3: i2c@50008c00 { compatible = “xxx-i2c3”; […]

Embedded Linux development—UART serial communication driver hardware programming

0. Basic preparation of serial port In embedded systems, many devices can be controlled through serial ports, such as WiFi, Bluetooth, RFID, etc., so using serial ports in embedded devices is particularly important. First, a few concepts are briefly clarified. RS232, RS485 and TTL refer to electrical level standards. Generally speaking, TTL uses 0V to […]