No description
Find a file
Jeff Epler 19dadbf21a
Update pyproject.toml
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101
2024-12-01 09:11:19 -06:00
examples Updated helper example 2024-05-13 13:05:10 -04:00
p1am_200_helpers Removed SocketPoolContants 2024-05-23 15:19:24 -04:00
LICENSE Initial commit 2023-10-06 10:46:03 -04:00
pyproject.toml Update pyproject.toml 2024-12-01 09:11:19 -06: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.