Arduino library for the Bricktronics Megashield
C++ C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
utility
API.md
BricktronicsMegashield.cpp
BricktronicsMegashield.h
README.md
keywords.txt

README.md

BricktronicsMegashield

BricktronicsMegashield v1.2 - A software library for Arduino.

This meta-library provides easy interfacing to the Bricktronics Megashield. This library does not contain any functional code, rather it provides static mappings between motor and sensor ports on the Megashield, 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.

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 BricktronicsMegashield. Check that the BricktronicsMegashield folder contains BricktronicsMegashield.cpp and BricktronicsMegashield.h
  • Place the BricktronicsMegashield 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_6 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.