sum1els / circuitpy-glucose-display

Display for viewing current Freestyle Libre glucose levels
MIT License
2 stars 1 forks source link

Glucose Monitor Display with Raspberry Pi Pico W and Waveshare 2" IPS Screen

This project uses a Raspberry Pi Pico W and a Waveshare 2" IPS screen to display glucose levels from the Freestyle Libre continuous glucose monitor (CGM). The project is built using CircuitPython.

Table of Contents

Introduction

This project provides a simple and effective way to continuously monitor and display glucose levels from the Freestyle Libre CGM on a small IPS screen using a Raspberry Pi Pico W. The project is written in CircuitPython, making it easy to modify and extend.

example

Features

Hardware Requirements

Software Requirements

Setup Instructions

  1. Install CircuitPython: Follow the instructions on the CircuitPython website to install CircuitPython on your Raspberry Pi Pico W.

  2. Install Required Libraries: Download the required libraries from the CircuitPython library bundle and copy them to the lib folder on your Pico W's CIRCUITPY drive:

    • adafruit_imageload - Folder
    • adafruit_display_text - Folder
    • adafruit_requests.mpy
    • adafruit_connection_manager.mpy
    • adafruit_st7789.mpy
  3. Clone this Repository: Clone this repository to your local machine and copy the contents to the CIRCUITPY drive.

  4. Configure Wi-Fi: Rename settings.toml.example to settings.toml on the CIRCUITPY drive (if not there already) and update it with your Wi-Fi credentials and Freestyle LibreLinkUp account details:

    CIRCUITPY_WIFI_SSID = "WIFI_SSID"
    CIRCUITPY_WIFI_PASSWORD = "WIFI_PASSWORD"
    API_USER = "LINKUP_USERNAME"
    API_PASSWORD = "LINKUP_PASSWORD"

Makefile

Overview

This repository includes a Makefile that automates the installation and setup process, at the moment it only supports macOS. The Makefile is designed for experienced users who are familiar with command-line tools.

Compatibility

How to Use the Makefile

Troubleshooting

Usage

After completing the setup instructions, your Raspberry Pi Pico W should automatically connect to your Wi-Fi network, fetch glucose data from the Freestyle Libre CGM, and display it on the Waveshare 2" IPS screen.

Contributing

Contributions are welcome! Please fork this repository and submit pull requests for any enhancements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.