Skip to content
Snippets Groups Projects

Extend Arduino devcomuino to support digital IO pins and Arduino Nano

Merged Juerg Beringer requested to merge juerg-arduino into devel
All threads resolved!

This merge request extends the Arduino devcomuino code to

  • add support for Arduino Nano
  • support digitial IO pins similar to what Matthias Saimpert proposed originally
  • shortens help and error messages to preserve more dynamic memory

The new list of commands supported by devcomuino is now:

HELP - This help
ADC ch - Read ADC channel ch
I2C WRITE addr byte-string - Write byte-string to I2C addr, MSB first
I2C READ addr nbytes - Read nbytes from I2C addr
EEPROM WRITE addr value - Write to addr in EEPROM
EEPROM READ addr - Read addr from EEPROM
DGT OUT ch - Set digital pin ch as output
DGT IN ch - Set digital pin ch as input
DGT PULLUP ch - Set digital pin ch as input w/pullup
DGT READ ch - Read channel ch
DGT HIGH ch - Set channel ch HIGH
DGT LOW ch - Set channel ch LOW

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Juerg Beringer added 3 commits

    added 3 commits

    • 731e1f86 - Increase baud rate from 9600 to 115200, use F() macro to save more dynamic memory
    • 25ef33e2 - Use single write instead of high/low commands as requested by Karol
    • 7098fa50 - Formatting

    Compare with previous version

  • Done.

    In addition I increased the baud rate from 9600 to 115200 baud (which all Arduino boards should be able to handle) and used the F() macro to move the help messages from dynamic memory to program storage.

  • added 24 commits

    • 7098fa50...031b6153 - 14 commits from branch devel
    • 75fffeb1 - Add support for Arduino Nano
    • 6bd77f60 - Add DGT commands loosely following Matthias Saimpert's implementation but...
    • 383327c9 - Increase baud rate from 9600 to 115200, use F() macro to save more dynamic memory
    • 8df158a6 - Use single write instead of high/low commands as requested by Karol
    • c23193cb - Formatting
    • 22de1d4b - Add DGT commands loosely following Matthias Saimpert's implementation but...
    • 67f0cb97 - Increase baud rate from 9600 to 115200, use F() macro to save more dynamic memory
    • e05cf1c6 - Use single write instead of high/low commands as requested by Karol
    • ea77af06 - Formatting
    • 17929bca - Merge branch 'juerg-arduino' of https://gitlab.cern.ch/berkeleylab/labRemote into juerg-arduino

    Compare with previous version

  • Karol Krizka resolved all threads

    resolved all threads

  • Noticed one more problem. The examples that use the DevComuino need to be updated.

  • Elisabetta Pianori mentioned in issue #117

    mentioned in issue #117

  • This will be merged-in as is, and an issue is open to follow up on Karol comment: #117

  • Elisabetta Pianori approved this merge request

    approved this merge request

  • mentioned in commit bfa677bb

  • Please register or sign in to reply
    Loading