This website works better with JavaScript.
Home
Help
Sign In
heuzef
/
WiringPi
mirror of
https://github.com/WiringPi/WiringPi.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
9
Wiki
Activity
Browse Source
set WPI_MODE_GPIO as a default mode also for CM4 (
#92
)
pull/111/head
fanoush
3 years ago
committed by
GitHub
parent
22fac72e1a
commit
10be9486ff
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
wiringPi/wiringPi.c
+ 2
- 1
wiringPi/wiringPi.c
View File
@@ -2284,7 +2284,8 @@ int wiringPiSetup (void)
if ((model == PI_MODEL_CM) ||
(model == PI_MODEL_CM3) ||
(model == PI_MODEL_CM3P))
(model == PI_MODEL_CM3P) ||
(model == PI_MODEL_CM4))
wiringPiMode = WPI_MODE_GPIO ;
else
wiringPiMode = WPI_MODE_PINS ;
Write
Preview
Loading…
Cancel
Save