Cool stuff for Raspberry Pi, Arduino and all electronics hobby projects
Notifications
Clear all

Are there Vivid Unit GPIO code examples?

2 Posts
2 Users
0 Likes
22 Views
(@christian-hrabovsky)
Posts: 1
New Member Customer
Topic starter
 

E.g. for a 16x2 I2C LCDs or GPIO programming examples in general?

 
Posted : 30/11/2024 4:52 pm
(@admin)
Posts: 486
Member Admin
 

Vivid Unit provides a 40-pin GPIO header compatible with Raspberry Pi, so many Raspberry Pi examples can be adapted to work on Vivid Unit.

You can find more information about Vivid Unit's GPIO on this page.

The pre-installed vgp application can be used to minotor and control the GPIOs.

For your own program, you may use the gpiod library. We recently put the source code for vcool on GitHub, which use gpiod library to output PWM on GPIO 4D1.

For I2C applications, please note that Vivid Unit uses I2C Bus ID 2, while Raspberry Pi uses I2C Bus ID 1. This means that when adapting examples, you need to modify the I2C bus ID in the code accordingly.

 

 

 
Posted : 02/12/2024 8:24 am
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.