Introduction
- Organisation: Digital Impact Alliance (DIAL) at UN Foundation
- DIAL Sub-Org: Pocket Science Lab
- Student: NAVEEN S R
- Social: Email, GitHub & Gitter, LinkedIn
- Project: Circuitpython busio compatibility layer for pslab-python
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
1. I2C
- Refactored I2C and Added
_I2CPrimitive
to reducing code duplication.
2. busio.I2C
- Added I2C of circuitpython's busio compatibility layer for pslab-python.
3. SPI
-
Moved SPI functionalities from
pslab/peripherals.py
topslab/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
.
4. busio.SPI
- Added SPI of circuitpython's busio compatibility layer for pslab-python.
5. UART
-
Moved UART functionalities from
pslab/sciencelab.py
topslab/bus/uart.py
and Refactored UART. -
Added
_UARTPrimitive
to reducing code duplication. -
Wrote tests for
pslab.bus.uart
.
6. busio.UART
- Added UART of circuitpython's busio compatibility layer for pslab-python.
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.