Skip to content

wayneandlayne/BricktronicsShield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BricktronicsShield

BricktronicsShield v1.2 - A software library for Arduino.

This meta-library provides easy interfacing to the Bricktronics Shield. This library does not contain any functional code for motors or sensors, rather it provides static mappings between motor and sensor ports on the Shield, and the pin numbers needed by the motor and sensor libraries. It packages the pin settings into two structs defined in BricktronicsSettings.h, which are defined as static const objects in the BricktronicsMegashield class. Use these objects in your motor and sensor constructors. Since the Bricktronics Shield uses an I/O expander chip to add additional pins, this library does contain the code needed to interface with that chip, and provide a way for the motor and sensor libraries to transparently talk to that chip.

More details at http://www.wayneandlayne.com/bricktronics/

To Download

  • Click the "Clone or download" button on the upper-right side of this page below the pink bar, then select "Download ZIP". Rename the uncompressed folder BricktronicsShield. Check that the BricktronicsShield folder contains BricktronicsShield.cpp and BricktronicsShield.h
  • Place the BricktronicsShield library folder into your <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if this is your first installed library. Restart the Arduino IDE.

API Highlights

  • BricktronicsShield::MOTOR_1 - Use this static const struct in your motor constructors. MOTOR_1 through MOTOR_2 are defined.
  • BricktronicsShield::SENSOR_1 - Use this static const struct in your sensor constructors. SENSOR_1 through SENSOR_4 are defined.
  • More API details in API.md

Supported motor and sensor libraries you may be interested in:

Wayne and Layne, LLC and our products are not connected to or endorsed by the LEGO Group. LEGO, Mindstorms, and NXT are trademarks of the LEGO Group.

About

Arduino library for the Bricktronics Shield

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published