Integrate External Libraries
Thanks to the maker movement, there are a vast number of libraries that can be installed to leverage code that has already been created and shared. The functionality from these external libraries can be easily included in the deployed code using the Microcontroller Kit.
In this example, a library for the HC-SR04 ultrasonic distance sensor is used to obtain the distance value. This value is then displayed on an 8×2 character LCD of the A-Star 32U4 Prime SV board using the a-star-32u4-arduino-library.
The systems model.
The input channel with the Trig and Echo pins of the sensor connected to pins 12 and 11.
The output channel.
The complete microcontroller specification.
The library locations.
Deploy the code.