OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Smaller DC version of OSPi Reply To: Smaller DC version of OSPi

#46828

Uksa007
Participant

My PCB’s and parts are on order.

While I’m waiting on hardware I would like to improve the firmware “hacks” I made.
I have forked the Opensprinkler-Firmware. https://github.com/Uksa007/OpenSprinkler-Firmware
Thinking I should probably create a new hardware type for my OSPi-DC, as it is fairly different, no RTC, Buttons, or ADC and as a result the pin defines are a little different.

defines.h seems to define the hardware and pins, whats the best way to go about creating a different hardware version of the OSPI?

/** Hardware version base numbers */
#define OSPI_HW_VERSION_BASE 0x40

/** OSPi pin defines */
#if defined(OSPI)

Have gone with creating a new hardware type OSPIMINI and have updated many files to include new hardware type.