Add support for the Zero 2 W (#128)
* Changes to support the Zero 2 W (model type 18|0x12) * Increment version in version.h * Increment version in debian-template/wiringPi/DEBIAN/control * Increment version in VERSION as well - I keep missing places where this number is defined * Increment VERSION_MINOR, missed in previous commits; add missing Pi Z2W model name to piModelNames Co-authored-by: schwartz <pi@schwartz> Co-authored-by: PumpkinPi <jack@mirkwood.net>
This commit is contained in:
@@ -239,7 +239,7 @@ const char *piModelNames [21] =
|
||||
"Unknown15", // 15
|
||||
"CM3+", // 16
|
||||
"Pi 4B", // 17
|
||||
"Unknown18", // 18
|
||||
"Pi Zero2-W", // 18
|
||||
"Pi 400", // 19
|
||||
"CM4", // 20
|
||||
} ;
|
||||
@@ -2290,7 +2290,7 @@ int wiringPiSetup (void)
|
||||
pinToGpio = pinToGpioR1 ;
|
||||
physToGpio = physToGpioR1 ;
|
||||
}
|
||||
else // A2, B2, A+, B+, CM, Pi2, Pi3, Zero
|
||||
else // A2, B2, A+, B+, CM, Pi2, Pi3, Zero, Zero W, Zero 2 W
|
||||
{
|
||||
pinToGpio = pinToGpioR2 ;
|
||||
physToGpio = physToGpioR2 ;
|
||||
|
||||
Reference in New Issue
Block a user