Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The work i did during GSoC 2021. Project url: https://summerofcode.withgoogle.com/projects/#6428660170489856

Introduction

Project Description

The PSLab project has many instruments and supports some external sensors, but there are many sensors which are supported by pslab board yet to be implemented. Since Adafruit maintains a large repository of sensor drivers, we can make use of it by writing a compatibility layer between busio and pslab-python. In this project, I will refactor pslab-python’s serial bus modules and add busio wrapper which uses pslab-python’s modules internally.

Project Status

Fully Completed.

My Work

PRs : https://github.com/fossasia/pslab-python/pulls?q=is%3Apr+author%3Ankpro2000sr+created%3A2021-06-07..2021-08-23

1. I2C

  • Refactored I2C and Added _I2CPrimitive to reducing code duplication.

Merged Pull Request

2. busio.I2C

  • Added I2C of circuitpython's busio compatibility layer for pslab-python.

Merged Pull Request

3. SPI

  • Moved SPI functionalities from pslab/peripherals.py to pslab/bus/spi.py and Refactored SPI.

  • Added _SPIPrimitive to reducing code duplication.

  • Improvement at set_gain in PGA, to reset SPI configuration if the config is not supported by PGA while setting gain value.

  • Wrote tests for pslab.bus.spi.

Merged Pull Request

4. busio.SPI

  • Added SPI of circuitpython's busio compatibility layer for pslab-python.

Merged Pull Request

5. UART

  • Moved UART functionalities from pslab/sciencelab.py to pslab/bus/uart.py and Refactored UART.

  • Added _UARTPrimitive to reducing code duplication.

  • Wrote tests for pslab.bus.uart.

Merged Pull Request

6. busio.UART

  • Added UART of circuitpython's busio compatibility layer for pslab-python.

Merged Pull Request

Blog Posts

Weekly Standup Blogs posted on DIAL Community Hub can be found under the topic PSLab: Circuitpython busio compatibility layer for pslab-python

Scrums

All the scrums updates during the GSoC period can be found here.

Thank you DIAL and PSLab for this amazing experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment