Exploring the TinyGo drivers
In Chapter 3, Building a Safety Lock Using a Keypad, we learned about the TinyGo drivers repository. Let's have a brief look at how to find drivers and examples in this repository.
When you're planning a new project, it is always good to check if the drivers repository has drivers for the devices you plan to use. It will speed up your project and make it easier to implement.
The drivers repository is split into two parts:
- The drivers
- Examples
The drivers directly reside in the root of the repository. All the examples are inside an example folder.
We want to use an hd44780 LCD display with an I2C interface in our example, so let's check if we can find it inside the drivers repository. Refer to the following screenshot:
As we can see, the package is named after the device and the interface (I2C) it uses. Sometimes, a driver package provides more...