Skip to content

Commit

Permalink
Fix incorrect function name
Browse files Browse the repository at this point in the history
  • Loading branch information
sjefferson99 committed Jul 15, 2023
1 parent 2de4b17 commit ffe58e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/developer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_readings(i2c, address):
return readings
```

Modify the function qwst_boards() in enviro/\_\_init\_\_.py to include an entry for your new board. This should use an if statement to check the address from the config file is visible on the I2C bus, reference your new module file path from the section above in the import statement and append a dictionary that has keys for "name", "include" and "address" to the modules list. The include key has a value of your imported module and the address is the I2C address from the config file.
Modify the function get_qwst_modules() in enviro/\_\_init\_\_.py to include an entry for your new board. This should use an if statement to check the address from the config file is visible on the I2C bus, reference your new module file path from the section above in the import statement and append a dictionary that has keys for "name", "include" and "address" to the modules list. The include key has a value of your imported module and the address is the I2C address from the config file.

Example:
```
Expand Down

0 comments on commit ffe58e7

Please sign in to comment.