Skip to content

Commit

Permalink
Update to firmware 3
Browse files Browse the repository at this point in the history
  • Loading branch information
UmSenhorQualquer committed Apr 23, 2018
1 parent 01df2f7 commit 09ad27e
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 218 deletions.
10 changes: 9 additions & 1 deletion pybpod_rotaryencoder_module/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class RotaryEncoder(BpodModule):
COM_SETZEROPOS = ord('Z')
COM_START_LOGGING = ord('L')
COM_STOP_LOGGING = ord('F')
COM_TIMESTAMP_BYTE = ord('#')


@staticmethod
def check_module_type(module_name):
Expand Down Expand Up @@ -66,4 +68,10 @@ def stops_logging(self):
"""
Finish logging position+time data to the microSD card.
"""
self.write_char_array([self.COM_STOP_LOGGING])
self.write_char_array([self.COM_STOP_LOGGING])

def timestamp_byte(self, value):
"""
value as to be a byte
"""
self.write_char_array([self.COM_TIMESTAMP_BYTE, value])

0 comments on commit 09ad27e

Please sign in to comment.