No description
Find a file
Tristan Warder 73b1105301 Add typo
I'm sorry
2024-05-13 13:09:13 -04:00
examples Updated helper example 2024-05-13 13:05:10 -04:00
p1am_200_helpers Add typo 2024-05-13 13:09:13 -04:00
LICENSE Initial commit 2023-10-06 10:46:03 -04:00
pyproject.toml Initial commit 2023-10-06 10:46:03 -04:00
README.md Initial commit 2023-10-06 10:46:03 -04:00

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.

import p1am_200_helpers as helper

led = helper.get_led() # get the yellow LED
led.value = True # turn on the LED

eth = 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 address

rtc = 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.