Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/facts-engineering/circuitpython_p1am_200_helpers
https://github.com/facts-engineering/circuitpython_p1am_200_helpers
Last synced: about 16 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/facts-engineering/circuitpython_p1am_200_helpers
- Owner: facts-engineering
- License: mit
- Created: 2023-10-06T14:09:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-23T19:26:26.000Z (7 months ago)
- Last Synced: 2024-11-06T23:04:10.401Z (about 2 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# p1am_200_helpers
Helpers to simplify initialization of features and shields for the P1AM-200.
## Usage
Below are some examples of helper functions. See the helpers_example.py file for a complete example.
```python
import p1am_200_helpers as helperled = helper.get_led() # get the yellow LED
led.value = True # turn on the LEDeth = helper.get_ethernet() # get the ethernet object and automatically use built-in MAC address
print(f"IP Address is: {eth.pretty_ip(eth.ip_address)}") # print IP addressrtc = helper.get_rtc() # get the real time clock object
helper.sync_rtc(-5) # sync RTC with NTP server, offset by -5 hours for EST
print(rtc_format_time(rtc)) # print current time# etc.
```