Menu

#46 Add getmode() function

Done
None
Medium
Enhancement
2015-02-15
2013-07-16
Anonymous
No

Originally created by: gc...@loowis.durge.org

As the setmode() function can be called at any time (to switch the numbering scheme between BCM and BOARD), for the sake of completeness it might be nice if there was a corresponding getmode() function (or property)?

Although if anybody *does* write a script with multiple setmode calls, they're obviously going to be confusing themselves with channel numbers ;-)

Discussion

  • Tieske

    Tieske - 2014-02-13

    I think it would be easier to make the 'setmode()' return the current value, and make its parameter optional.
    If the optional parameter is not provided, it just returns the current value

     
  • Ben Croston

    Ben Croston - 2015-02-15
    • Description has changed:

    Diff:

    
    
    • status: New --> Started
    • assigned_to: Ben Croston
    • Type: Defect --> Enhancement
     
  • Ben Croston

    Ben Croston - 2015-02-15

    getmode() function added to 0.5.11a2

     
  • Ben Croston

    Ben Croston - 2015-02-15
    • status: Started --> Done
     

Log in to post a comment.

MongoDB Logo MongoDB