Lib2 - C/C++ Library for Raspberry Pi Pico

Overview

Lib2 - C/C++ Library for Raspberry Pi Pico

platform Donate

Description:

Lib2 library implements wrapper functions and device driver for Raspberry Pi Pico.
With lib2 it is more easy to write C/C++applications for Pico.

See Getting Started with the Raspberry Pi Pico for information on getting up and running.

Using:

⚠️ Set environment variables PICO_SDK_PATH and PICO_LIB2_PATH.
Add the file pico_lib2_import.cmake in folder external
to your application CMakeLists.txt.

Example CMakeLists.txt file entry:

cmake_minimum_required(VERSION 3.12)

# Pull in PICO SDK (must be before project)
include(pico_sdk_import.cmake)

# We also need LIB2
include(pico_lib2_import.cmake)

# Your project
project(myproj C CXX)

# Used compiler 
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)

#Your sourfiles
add_executable(myproj main.c)

# Add used libraries
target_link_libraries(myproj
    lib2_sys
    dev_ads1x15
)

# Setup stdio 
pico_enable_stdio_usb(myproj 0)
pico_enable_stdio_uart(myproj 1)

# Create map/bin/hex file etc.
pico_add_extra_outputs(myproj)

Examples:

https://github.com/iiot2k/pico-lib2-examples are examples for using Lib2.

CHANGELOG

Functions and Device Driver:

System:

GPIO Functions
I2C Functions
SPI Functions
ADC Functions
Time Functions
System Functions
Utility Functions

Device Driver:

HD44780 LCD Driver with PCF8574
ADS1115 Four Channel 16-bit ADC
ADS1015 Four Channel 12-bit ADC
MCP4728 Four Channel 12-bit DAC
MCP4725 One Channel 12-bit DAC
DS3231 Accurate Real-Time-Clock

Owner
Ocean
Ocean
Breakout game for Raspberry Pi Pico with Pimoroni Pico Display pack

breakout_rpi_pico Breakout game for Raspberry Pi Pico with Pimoroni Pico Display pack Prebuilt binary (breakout.uf2) is here. To build your own binary

null 18 Jan 17, 2022
Pico-uart-bridge - Raspberry Pi Pico UART-USB bridge

Raspberry Pi Pico USB-UART Bridge This program bridges the Raspberry Pi Pico HW UARTs to two independent USB CDC serial devices in order to behave lik

Álvaro Fernández Rojas 118 Aug 5, 2022
Digital rain animation gif with glow squeezed into a raspberry pi pico and pimoroni pico-display

pico-display-matrix Digital rain animation gif with glow squeezed into a raspberry pi pico and pimoroni pico-display or how to actually use all Flash

null 30 Jul 17, 2022
Prueba del Raspberry PI PICO con un display Raspberry PI TFT 3.5"

Raspberry-PI-PICO-display-RPI35 Prueba del Raspberry PI PICO con un display Raspberry PI TFT 3.5" Con ayuda de la libreria https://github.com/khoih-pr

null 1 Nov 10, 2021
I2C slave library for the Raspberry Pi Pico

I2C slave library for the Raspberry Pi Pico The Raspberry Pi Pico C/C++ SDK has all you need to write an I2C master, but is curiously lacking when it

Valentin Milea 46 Aug 2, 2022
📚🪛 Arduino library to calibrate and improve ADC measurements with the Raspberry Pi Pico.

Arduino-Pico-Analog-Correction Arduino library to calibrate and improve ADC measurements with the Raspberry Pi Pico. Can compensate ADC offsets, calcu

NuclearPhoenix 9 Jul 26, 2022
Raspberry Pi Pico (RP2040) and Micro-ROS (ROS 2) Integration

The Pico is an amazing microcontroller and I couldn't wait for ROS 2 support or Arduino Core, so here is my approach. Once the Arduino Core for RP2040 is out it will be easier to use micro_ros_arduino.

Darko Lukić 19 Jun 19, 2022
built-in CMSIS-DAP debugger tailored especially for the RP2040 “Raspberry Pi Pico”

RP2040 has two ARM Cortex-M0+ cores, and the second core normally remains dormant. pico-debug runs on one core in a RP2040 and provides a USB CMSIS-DAP interface to debug the other core. No hardware is added; it is as if there were a virtual debug pod built-in.

null 210 Aug 5, 2022
🦠 µnix is a UNIX-like operating system for the raspberry pi pico.

The µnix Operating System "µnix", "munix" or, "micro unix" aims to be a micro kernel based operating system targeting the Raspberry Pi Pico. "µnix" is

Sleepy Monax 57 Jul 30, 2022
Fractal rendering for Raspberry Pi Pico microcontroller

picofract Mandelbrot Set rendering demo for Raspberry Pi Pico microcontroller with Pico Display Pack. Building If you already have the Pimoroni SDK bu

null 20 Apr 29, 2022
Arduino API for the Raspberry Pico

Raspberry PI Pico - Arduino API On Friday I was receiving my Raspberry PI Pico and I had the opportunity to play around with it. Actually most of the

Phil Schatzmann 53 Jul 29, 2022
x86 emulator on Raspberry Pi Pico

picox86 x86 emulator on Raspberry Pi Pico https://user-images.githubusercontent.com/10139098/110543817-13299080-812b-11eb-9c88-674cdae919fc.mp4 PCB fr

null 34 Apr 7, 2022
A laser cut Dreamcast Pop'n Music controller and integrated memory card using the Raspberry Pi Pico's Programmable IO

Dreamcast Pop'n Music Controller Using Raspbery Pi Pico (RP2040) Intro This is a homebrew controller for playing the Pop'n Music games on the Sega Dre

null 36 Aug 3, 2022
Web Server based on the Raspberry Pico using an ESP8266 with AT firmware for WiFi

PicoWebServer This program runs on a Raspberry Pico RP2040 to provide a web server when connected to an Espressif ESP8266. This allows the Pico to be

null 46 Jul 19, 2022
Raspberry Pi Pico Arduino core, for all RP2040 boards

Arduino-Pico Raspberry Pi Pico Arduino core, for all RP2040 boards This is a port of the RP2040 (Raspberry Pi Pico processor) to the Arduino ecosystem

Earle F. Philhower, III 648 Aug 12, 2022
A programming environment for Lua for the Raspberry Pi Pico microcontroller

picolua A programming environment for Lua for the Raspberry Pi Pico microcontroller. Version 0.3, April 2021 What is this? picolua is a proof-of-conce

Kevin Boone 51 Jul 31, 2022
a little hobby raspberry pi pico emulator

PICO-EMU a little raspberry pi pico emulator note: we use the provided bootrom from raspberry pi at the repo: https://github.com/raspberrypi/pico-boot

supercyp 24 Aug 3, 2022
Raspberry Pi Pico AutoHotkey Streamdeck / Keyboard with LEDs

Raspberry Pi Pico AutoHotkey Streamdeck / Keyboard with LEDs

Build Comics 18 Jul 15, 2022
A FAT filesystem with SPI driver for SD card on Raspberry Pi Pico

no-OS-FatFS-SD-SPI-RPi-Pico Simple library for SD Cards on the Pico At the heart of this library is ChaN's FatFs - Generic FAT Filesystem Module. It a

Carl J Kugler III 97 Aug 1, 2022