Changes between Version 6 and Version 7 of UsingSensors

Changes between Version 6 and Version 7 of UsingSensors

Please note that these Trac pages are no longer being updated. Wiki contents/documentation have moved to GitHub.

Changes between Version 6 and Version 7 of UsingSensors

Please note that these Trac pages are no longer being updated. Wiki contents/documentation have moved to GitHub.

Changes between Version 6 and Version 7 of UsingSensors

Show
Ignore:
Timestamp:
07/25/12 10:15:04 (7 years ago)
Author:
justinc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsingSensors

    v6 v7  
    4242     
    4343def isSeattleSensor(): 
     44  """ isSeattleSensor() always returns True""" 
    4445  return True 
    4546 
    4647def mySensorName(): 
     48  """ my sensor name is "Hello World Sensor".""" 
    4749  return "Hello World Sensor" 
    4850 
    4951def readSensor(): 
     52  """ Read data from the hello world sensor""" 
    5053  return "Hello World!" 
    5154 
    5255def readSensorForLanguage(language): 
     56  """ Read data from the hello world sensor in a few languages.   Pass in a string.""" 
    5357  if language == 'English': 
    5458    return "Hello World!" 
     
    122126 
    123127}}} 
    124