Skip to content

PocketBeagle and Blue pin support

Pre-release
Pre-release
Compare
Choose a tag to compare
@jadonk jadonk released this 28 Nov 18:37
· 163 commits to master since this release

Install the latest beta over a network connection via:

sudo npm install --unsafe-perm -g bonescript@beta

Added several different pin aliases for BeagleBone Blue and PocketBeagle.

  • P1_x and P2_x for PocketBeagle where x is the connector pin number
  • ADC_x, BAT25/50/75/100, DSM2_x, Ey_x, GPy_x, GPS_x, GREEN/RED/WIFI/MODE/PAUSE, S1_y_x, UTy_x for BeagleBone Blue where x is the connector pin number and y is the port number or chip select as specified by the connector where it applies
  • P9_15B, P9_41B, and P9_42B have been added for BeagleBone Black
  • GPIO_x for all boards, where x is the GPIO number, not done as bank+offset, ie. GPIO_63 not GPIO1_31
  • Raw numbers will be mapped to GPIO_x, where x is the raw number provided
  • Ax for all boards, where x is the analog input (AIN)
  • Case is now ignored, though uppercase is the definitive approach
  • Separators can now be '_', '.', '-', or ' ', but '_' is the definitive approach
  • Leading 0s in numbers are now ignored, but no leading 0s is the definitive approach, ie. P2_09 will map to P2_9
  • Pins can also be specified using MUX_0Xnnn, where nnn is the hexadecimal offset in the multiplexing control registers