diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..822bfd7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: Build + +on: + pull_request: + push: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run build + run: | + ./build diff --git a/README.md b/README.md index 469b178..900c5ac 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,3 @@ -Unofficial WiringPi Mirror -========================== -This is an unofficial mirror of WiringPi. I have made my own changes to the repository, -including updates for RaspberryPi 4. I'm not sure if the changes are complete, and I -don't guarantee that everything works. I just needed to have some things working for my Pi4. - -Pull-requests are not currently accepted, since this is a mirror. - -For support, comments, questions, etc please join the WiringPi Discord channel: https://discord.gg/SM4WUVG - - -Nuncio - - -Official Unofficial WiringPi README -=================================== - WiringPi (Unofficial Mirror/Fork) ================================= @@ -43,6 +27,7 @@ Support Please do not email Gordon if you have issues, he will not be able to help. -Pull-requests are not currently accepted, since this is a mirror. +Pull-requests may be accepted to add or fix support for newer hardware, but new features or +other changes may not be accepted. For support, comments, questions, etc please join the WiringPi Discord channel: https://discord.gg/SM4WUVG diff --git a/VERSION b/VERSION index 9563461..587cb39 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.62 +2.70 diff --git a/build b/build index af6b88b..3af7836 100755 --- a/build +++ b/build @@ -115,22 +115,6 @@ fi hardware=`fgrep Hardware /proc/cpuinfo | head -1 | awk '{ print $3 }'` -# if [ x$hardware != "xBCM2708" ]; then -# echo "" -# echo " +------------------------------------------------------------+" -# echo " | wiringPi is designed to run on the Raspberry Pi only. |" -# echo " | This processor does not appear to be a Raspberry Pi. |" -# echo " +------------------------------------------------------------+" -# echo " | In the unlikely event that you think it is a Raspberry Pi, |" -# echo " | then please accept my apologies and email the contents of |" -# echo " | /proc/cpuinfo to projects@drogon.net. |" -# echo " | - Thanks, Gordon |" -# echo " +------------------------------------------------------------+" -# echo "" -# exit 1 -# fi - - echo echo "WiringPi Library" cd wiringPi diff --git a/debian-template/wiringPi/DEBIAN/control b/debian-template/wiringPi/DEBIAN/control index 1302836..ee811af 100755 --- a/debian-template/wiringPi/DEBIAN/control +++ b/debian-template/wiringPi/DEBIAN/control @@ -1,10 +1,13 @@ Package: wiringpi -Version: 2.61 +Version: 2.70 Section: libraries Priority: optional Architecture: armhf Depends: libc6 -Maintainer: Gordon Henderson +Maintainer: Phil Howard +Uploaders: Phil Howard Description: The wiringPi libraries, headers and gpio command Libraries to allow GPIO access on a Raspberry Pi from C and C++ and BASIC programs as well as from the command-line +Homepage: https://github.com/WiringPi/WiringPi/ +Bugs: https://github.com/WiringPi/WiringPi/ diff --git a/debian/control b/debian/control index 1d6d228..d705252 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: electronics Priority: optional Maintainer: Ian Jackson Standards-Version: 3.8.0 -Homepage: http://wiringpi.com/ +Homepage: https://github.com/WiringPi/WiringPi Build-Depends: debhelper (>= 8) Package: libwiringpi2 diff --git a/devLib/Makefile b/devLib/Makefile index 55f8a64..611e423 100644 --- a/devLib/Makefile +++ b/devLib/Makefile @@ -5,7 +5,7 @@ # Copyright (c) 2012-2016 Gordon Henderson ################################################################################# # This file is part of wiringPi: -# https://projects.drogon.net/raspberry-pi/wiringpi/ +# https://github.com/wiringPi/wiringPi # # wiringPi is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/ds1302.c b/devLib/ds1302.c index cf64de7..bad252f 100644 --- a/devLib/ds1302.c +++ b/devLib/ds1302.c @@ -5,7 +5,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/ds1302.h b/devLib/ds1302.h index e82b3ed..72d747b 100644 --- a/devLib/ds1302.h +++ b/devLib/ds1302.h @@ -5,7 +5,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/gertboard.c b/devLib/gertboard.c index 6a84415..f65bba3 100644 --- a/devLib/gertboard.c +++ b/devLib/gertboard.c @@ -13,7 +13,7 @@ * *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/devLib/gertboard.h b/devLib/gertboard.h index 3fa1919..4107ade 100644 --- a/devLib/gertboard.h +++ b/devLib/gertboard.h @@ -8,7 +8,7 @@ * *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/devLib/lcd.c b/devLib/lcd.c index 6c0e474..0491bb9 100644 --- a/devLib/lcd.c +++ b/devLib/lcd.c @@ -7,7 +7,7 @@ * Copyright (c) 2012 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/lcd.h b/devLib/lcd.h index 0a0e598..482314e 100644 --- a/devLib/lcd.h +++ b/devLib/lcd.h @@ -7,7 +7,7 @@ * Copyright (c) 2012 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/lcd128x64.c b/devLib/lcd128x64.c index accd5c3..e370488 100644 --- a/devLib/lcd128x64.c +++ b/devLib/lcd128x64.c @@ -13,7 +13,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/lcd128x64.h b/devLib/lcd128x64.h index b448bbc..f374ec2 100644 --- a/devLib/lcd128x64.h +++ b/devLib/lcd128x64.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/maxdetect.c b/devLib/maxdetect.c index 74ff70e..69537bd 100644 --- a/devLib/maxdetect.c +++ b/devLib/maxdetect.c @@ -5,7 +5,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/maxdetect.h b/devLib/maxdetect.h index a1fd742..98519b3 100644 --- a/devLib/maxdetect.h +++ b/devLib/maxdetect.h @@ -5,7 +5,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/piFace.c b/devLib/piFace.c index 4475c7f..c3814cd 100644 --- a/devLib/piFace.c +++ b/devLib/piFace.c @@ -6,7 +6,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/devLib/piFace.h b/devLib/piFace.h index 4965314..e799622 100644 --- a/devLib/piFace.h +++ b/devLib/piFace.h @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/piFaceOld.c b/devLib/piFaceOld.c index cadbfe8..51e157d 100644 --- a/devLib/piFaceOld.c +++ b/devLib/piFaceOld.c @@ -6,7 +6,7 @@ * has an MCP23S17 GPIO device connected via the SPI bus. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/devLib/piGlow.c b/devLib/piGlow.c index 44e3db8..7f1db7c 100644 --- a/devLib/piGlow.c +++ b/devLib/piGlow.c @@ -5,7 +5,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/piGlow.h b/devLib/piGlow.h index a4d89d0..0c9ba5d 100644 --- a/devLib/piGlow.h +++ b/devLib/piGlow.h @@ -5,7 +5,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/piNes.c b/devLib/piNes.c index a115050..e1905ec 100644 --- a/devLib/piNes.c +++ b/devLib/piNes.c @@ -4,7 +4,7 @@ * Copyright (c) 2012 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/devLib/piNes.h b/devLib/piNes.h index 897f181..7989535 100644 --- a/devLib/piNes.h +++ b/devLib/piNes.h @@ -4,7 +4,7 @@ * Copyright (c) 2012 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/devLib/scrollPhat.c b/devLib/scrollPhat.c index c1a6f11..d12666c 100644 --- a/devLib/scrollPhat.c +++ b/devLib/scrollPhat.c @@ -5,7 +5,7 @@ * Copyright (c) 2015 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/scrollPhat.h b/devLib/scrollPhat.h index 0e762b1..8c9cdac 100644 --- a/devLib/scrollPhat.h +++ b/devLib/scrollPhat.h @@ -5,7 +5,7 @@ * Copyright (c) 2015 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/devLib/scrollPhatFont.h b/devLib/scrollPhatFont.h index 92f623a..f196c52 100644 --- a/devLib/scrollPhatFont.h +++ b/devLib/scrollPhatFont.h @@ -8,7 +8,7 @@ * Copyright (c) 2015-2016 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/do-git.sh b/do-git.sh deleted file mode 100755 index e6cff21..0000000 --- a/do-git.sh +++ /dev/null @@ -1 +0,0 @@ -git pull origin diff --git a/examples/Gertboard/buttons.c b/examples/Gertboard/buttons.c index 5f76764..300d1bf 100644 --- a/examples/Gertboard/buttons.c +++ b/examples/Gertboard/buttons.c @@ -1,12 +1,12 @@ /* * buttons.c: * Read the Gertboard buttons. Each one will act as an on/off - * tiggle switch for 3 different LEDs + * toggle switch for 3 different LEDs * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/Gertboard/gertboard.c b/examples/Gertboard/gertboard.c index aefcb12..c05974f 100644 --- a/examples/Gertboard/gertboard.c +++ b/examples/Gertboard/gertboard.c @@ -7,12 +7,12 @@ * * We output a sine wave on D/A port 0 and sample A/D port 0. We then * plot the input value on the terminal as a sort of vertical scrolling - * oscilloscipe. + * oscilloscope. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/Gertboard/temperature.c b/examples/Gertboard/temperature.c index 5985a12..c3cf3fa 100644 --- a/examples/Gertboard/temperature.c +++ b/examples/Gertboard/temperature.c @@ -3,10 +3,10 @@ * Demonstrate use of the Gertboard A to D converter to make * a simple thermometer using the LM35. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/Gertboard/voltmeter.c b/examples/Gertboard/voltmeter.c index c4d2113..f1c3130 100644 --- a/examples/Gertboard/voltmeter.c +++ b/examples/Gertboard/voltmeter.c @@ -3,10 +3,10 @@ * Demonstrate use of the Gertboard A to D converter to make * a simple voltmeter. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/Makefile b/examples/Makefile index 082b090..f400328 100755 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,7 +1,7 @@ # # Makefile: # wiringPi - A "wiring" library for the Raspberry Pi -# https://projects.drogon.net/wiring-pi +# https://github.com/wiringPi/wiringPi # # Copyright (c) 2012-2015 Gordon Henderson ################################################################################# diff --git a/examples/PiFace/Makefile b/examples/PiFace/Makefile index a5c7c72..91eb946 100644 --- a/examples/PiFace/Makefile +++ b/examples/PiFace/Makefile @@ -1,7 +1,7 @@ # # Makefile: # wiringPi - A "wiring" library for the Raspberry Pi -# https://projects.drogon.net/wiring-pi +# https://github.com/wiringPi/wiringPi # # Copyright (c) 2012 Gordon Henderson ################################################################################# diff --git a/examples/PiFace/blink.c b/examples/PiFace/blink.c index ffb8a2e..21b472a 100644 --- a/examples/PiFace/blink.c +++ b/examples/PiFace/blink.c @@ -2,10 +2,10 @@ * blink.c: * Simple "blink" test for the PiFace interface board. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/PiFace/buttons.c b/examples/PiFace/buttons.c index 147a4bd..4854a13 100644 --- a/examples/PiFace/buttons.c +++ b/examples/PiFace/buttons.c @@ -4,10 +4,10 @@ * * Read the buttons and output the same to the LEDs * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/PiFace/metro.c b/examples/PiFace/metro.c index a4a8c1d..c86b2a3 100644 --- a/examples/PiFace/metro.c +++ b/examples/PiFace/metro.c @@ -2,10 +2,10 @@ * metronome.c: * Simple test for the PiFace interface board. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/PiFace/motor.c b/examples/PiFace/motor.c index 14f5539..fb7bad6 100644 --- a/examples/PiFace/motor.c +++ b/examples/PiFace/motor.c @@ -4,10 +4,10 @@ * circuit via the 2 relays. * Then add on an external transsitor to help with PWM. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/PiFace/reaction.c b/examples/PiFace/reaction.c index 5084508..a3872b5 100644 --- a/examples/PiFace/reaction.c +++ b/examples/PiFace/reaction.c @@ -2,10 +2,10 @@ * reaction.c: * Simple test for the PiFace interface board. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/PiGlow/Makefile b/examples/PiGlow/Makefile index 10b7bd7..eb0e2d9 100644 --- a/examples/PiGlow/Makefile +++ b/examples/PiGlow/Makefile @@ -1,7 +1,7 @@ # # Makefile: # wiringPi - A "wiring" library for the Raspberry Pi -# https://projects.drogon.net/wiring-pi +# https://github.com/wiringPi/wiringPi # # Copyright (c) 2012-2015 Gordon Henderson ################################################################################# diff --git a/examples/PiGlow/piGlow0.c b/examples/PiGlow/piGlow0.c index d3fe4b9..100fd03 100644 --- a/examples/PiGlow/piGlow0.c +++ b/examples/PiGlow/piGlow0.c @@ -8,7 +8,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/PiGlow/piGlow1.c b/examples/PiGlow/piGlow1.c index a00b31e..b04dc30 100644 --- a/examples/PiGlow/piGlow1.c +++ b/examples/PiGlow/piGlow1.c @@ -6,7 +6,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/PiGlow/piglow.c b/examples/PiGlow/piglow.c index e6a2db3..be5a5e0 100644 --- a/examples/PiGlow/piglow.c +++ b/examples/PiGlow/piglow.c @@ -6,7 +6,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/blink-thread.c b/examples/blink-thread.c index a53fbf3..323506b 100644 --- a/examples/blink-thread.c +++ b/examples/blink-thread.c @@ -3,10 +3,10 @@ * Standard "blink" program in wiringPi. Blinks an LED connected * to the first GPIO pin. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/blink.c b/examples/blink.c index 4dc733f..44c105e 100644 --- a/examples/blink.c +++ b/examples/blink.c @@ -3,10 +3,10 @@ * Standard "blink" program in wiringPi. Blinks an LED connected * to the first GPIO pin. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/blink.rtb b/examples/blink.rtb index eb7d26c..6402ecb 100644 --- a/examples/blink.rtb +++ b/examples/blink.rtb @@ -1,10 +1,10 @@ // blink.rtb: // Blink program in Return to Basic // -// Copyright (c) 2012-2013 Gordon Henderson. +// Copyright (c) 2012-2013 Gordon Henderson. //********************************************************************** // This file is part of wiringPi: -// https://projects.drogon.net/raspberry-pi/wiringpi/ +// https://github.com/WiringPi/WiringPi // // wiringPi is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/blink.sh b/examples/blink.sh index 3975bb7..25ceaf0 100644 --- a/examples/blink.sh +++ b/examples/blink.sh @@ -4,10 +4,10 @@ # Standard "blink" program in wiringPi. Blinks an LED connected # to the first GPIO pin. # -# Copyright (c) 2012-2013 Gordon Henderson. +# Copyright (c) 2012-2013 Gordon Henderson. ####################################################################### # This file is part of wiringPi: -# https://projects.drogon.net/raspberry-pi/wiringpi/ +# https://github.com/WiringPi/WiringPi # # wiringPi is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/blink12.c b/examples/blink12.c index c9b3d50..87ed808 100644 --- a/examples/blink12.c +++ b/examples/blink12.c @@ -3,10 +3,10 @@ * Simple sequence over the first 12 GPIO pins - LEDs * Aimed at the Gertboard, but it's fairly generic. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/blink12drcs.c b/examples/blink12drcs.c index 6ee11fd..ad6caa1 100644 --- a/examples/blink12drcs.c +++ b/examples/blink12drcs.c @@ -2,12 +2,12 @@ * blink12drcs.c: * Simple sequence over the first 12 GPIO pins - LEDs * Aimed at the Gertboard, but it's fairly generic. - * This version uses DRC totalk to the ATmega on the Gertboard + * This version uses DRC to talk to the ATmega on the Gertboard * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/blink6drcs.c b/examples/blink6drcs.c index 32f4921..46bbbbf 100644 --- a/examples/blink6drcs.c +++ b/examples/blink6drcs.c @@ -4,10 +4,10 @@ * Aimed at the Gertduino, but it's fairly generic. * This version uses DRC to talk to the ATmega on the Gertduino * - * Copyright (c) 2012-2014 Gordon Henderson. + * Copyright (c) 2012-2014 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/blink8-drcn.c b/examples/blink8-drcn.c index 96c775b..8840e9e 100644 --- a/examples/blink8-drcn.c +++ b/examples/blink8-drcn.c @@ -3,10 +3,10 @@ * Simple sequence over the first 8 GPIO pins - LEDs * Aimed at the Ladder board, but it's fairly generic. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/blink8.c b/examples/blink8.c index 602d3c0..96dbedd 100644 --- a/examples/blink8.c +++ b/examples/blink8.c @@ -3,10 +3,10 @@ * Simple sequence over the first 8 GPIO pins - LEDs * Aimed at the Gertboard, but it's fairly generic. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/clock.c b/examples/clock.c index 9a53210..5ca98fd 100644 --- a/examples/clock.c +++ b/examples/clock.c @@ -16,7 +16,7 @@ * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/delayTest.c b/examples/delayTest.c index d772cf9..16245c3 100644 --- a/examples/delayTest.c +++ b/examples/delayTest.c @@ -3,10 +3,10 @@ * Just a little test program I'm using to experiment with * various timings and latency, etc. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/ds1302.c b/examples/ds1302.c index f1e9e20..025e79b 100644 --- a/examples/ds1302.c +++ b/examples/ds1302.c @@ -5,7 +5,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/header.h b/examples/header.h index 82f723d..dafc922 100644 --- a/examples/header.h +++ b/examples/header.h @@ -1,10 +1,10 @@ /* * file.c: * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/isr-osc.c b/examples/isr-osc.c index 68607b4..9552378 100644 --- a/examples/isr-osc.c +++ b/examples/isr-osc.c @@ -5,7 +5,7 @@ * How to test: * * IMPORTANT: To run this test we connect 2 GPIO pins together, but - * before we do that YOU must make sure that they are both setup + * before we do that YOU must make sure that they are both set up * the right way. If they are set to outputs and one is high and one low, * then you connect the wire, you'll create a short and that won't be good. * @@ -23,10 +23,10 @@ * then do the up/down toggling for itself and run at full speed, and * it will report the number of interrupts recieved every second. * - * Copyright (c) 2013 Gordon Henderson. projects@drogon.net + * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/isr.c b/examples/isr.c index e9256b7..0b56afc 100644 --- a/examples/isr.c +++ b/examples/isr.c @@ -14,7 +14,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -29,8 +29,6 @@ * You should have received a copy of the GNU Lesser General Public License * along with wiringPi. If not, see . *********************************************************************** - * Updates: 2021 J. Parziale - *********************************************************************** */ #include @@ -81,11 +79,13 @@ int main (void) int gotOne, pin ; int myCounter [8] ; - for (pin = 0 ; pin < 8 ; ++pin) { + for (pin = 0 ; pin < 8 ; ++pin) + { globalCounter [pin] = myCounter [pin] = 0 ; } - if (wiringPiSetup() < 0) { + if (wiringPiSetup() < 0) + { fprintf(stderr, "Unable to setup wiringPi: %s\n", strerror(errno)); return 1; } @@ -111,7 +111,8 @@ int main (void) signal(SIGUSR1, Signal_handler); signal(SIGUSR2, Signal_handler); - while (!terminate_process) { + while (!terminate_process) + { gotOne = 0 ; printf("Waiting ... "); fflush(stdout); diff --git a/examples/isr1.c b/examples/isr1.c index d504fd0..d3042c3 100644 --- a/examples/isr1.c +++ b/examples/isr1.c @@ -14,7 +14,7 @@ * Copyright (c) 2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -29,8 +29,6 @@ * You should have received a copy of the GNU Lesser General Public License * along with wiringPi. If not, see . *********************************************************************** - * Updates: 2021 J. Parziale - *********************************************************************** */ #include diff --git a/examples/lcd-adafruit.c b/examples/lcd-adafruit.c index 47c9b9b..7600aaf 100644 --- a/examples/lcd-adafruit.c +++ b/examples/lcd-adafruit.c @@ -7,7 +7,7 @@ * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -271,8 +271,8 @@ int main (int argc, char *argv[]) adafruitLCDSetup (colour) ; - lcdPosition (lcdHandle, 0, 0) ; lcdPuts (lcdHandle, "Gordon Henderson") ; - lcdPosition (lcdHandle, 0, 1) ; lcdPuts (lcdHandle, " wiringpi.com ") ; + lcdPosition (lcdHandle, 0, 0) ; lcdPuts (lcdHandle, " Hello World ") ; + lcdPosition (lcdHandle, 0, 1) ; lcdPuts (lcdHandle, " wiringpi ") ; waitForEnter () ; diff --git a/examples/lcd.c b/examples/lcd.c index 510f562..b006173 100644 --- a/examples/lcd.c +++ b/examples/lcd.c @@ -19,7 +19,7 @@ * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -215,14 +215,14 @@ int main (int argc, char *argv[]) return -1 ; } - lcdPosition (lcdHandle, 0, 0) ; lcdPuts (lcdHandle, "Gordon Henderson") ; - lcdPosition (lcdHandle, 0, 1) ; lcdPuts (lcdHandle, " wiringpi.com ") ; + lcdPosition (lcdHandle, 0, 0) ; lcdPuts (lcdHandle, "Hello World") ; + lcdPosition (lcdHandle, 0, 1) ; lcdPuts (lcdHandle, " wiringpi ") ; waitForEnter () ; if (rows > 1) { - lcdPosition (lcdHandle, 0, 1) ; lcdPuts (lcdHandle, " wiringpi.com ") ; + lcdPosition (lcdHandle, 0, 1) ; lcdPuts (lcdHandle, " wiringpi ") ; if (rows == 4) { diff --git a/examples/lowPower.c b/examples/lowPower.c index e901e7f..02879f5 100644 --- a/examples/lowPower.c +++ b/examples/lowPower.c @@ -9,7 +9,7 @@ * Copyright (c) 2014 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/max31855.c b/examples/max31855.c index 36b3cf6..19c6d50 100644 --- a/examples/max31855.c +++ b/examples/max31855.c @@ -5,7 +5,7 @@ * Copyright (c) 2015 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/nes.c b/examples/nes.c index 31908e8..9d76698 100644 --- a/examples/nes.c +++ b/examples/nes.c @@ -2,10 +2,10 @@ * nes.c: * Test program for an old NES controller connected to the Pi. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/okLed.c b/examples/okLed.c index 9a17cce..621bc99 100644 --- a/examples/okLed.c +++ b/examples/okLed.c @@ -9,10 +9,10 @@ * e.g. by putting it in /etc/rc.local and running it in the * background & * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/pwm.c b/examples/pwm.c index a10e99b..2c6eac7 100755 --- a/examples/pwm.c +++ b/examples/pwm.c @@ -2,10 +2,10 @@ * pwm.c: * This tests the hardware PWM channel. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -20,8 +20,6 @@ * You should have received a copy of the GNU Lesser General Public License * along with wiringPi. If not, see . *********************************************************************** - * Updates: 2021 J. Parziale - *********************************************************************** */ #include diff --git a/examples/q2w/Makefile b/examples/q2w/Makefile index 7dc0e55..ca05428 100644 --- a/examples/q2w/Makefile +++ b/examples/q2w/Makefile @@ -1,7 +1,7 @@ # # Makefile: # wiringPi - A "wiring" library for the Raspberry Pi -# https://projects.drogon.net/wiring-pi +# https://github.com/wiringPi/wiringPi # # Copyright (c) 2012-2013 Gordon Henderson ################################################################################# diff --git a/examples/q2w/binary.c b/examples/q2w/binary.c index 3c987c6..2bbe8ef 100644 --- a/examples/q2w/binary.c +++ b/examples/q2w/binary.c @@ -3,10 +3,10 @@ * Using the Quick 2 wire 16-bit GPIO expansion board to output * a binary counter. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/q2w/blink-io.c b/examples/q2w/blink-io.c index 4dd4276..b4b42e5 100644 --- a/examples/q2w/blink-io.c +++ b/examples/q2w/blink-io.c @@ -2,10 +2,10 @@ * blink-io.c: * Simple "blink" test for the Quick2Wire 16-pin IO board. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/q2w/blink.c b/examples/q2w/blink.c index 62b694a..530bd1a 100644 --- a/examples/q2w/blink.c +++ b/examples/q2w/blink.c @@ -2,10 +2,10 @@ * blink.c: * Simple "blink" test for the Quick2Wire interface board. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/q2w/blink.sh b/examples/q2w/blink.sh index bb6107a..f10e982 100644 --- a/examples/q2w/blink.sh +++ b/examples/q2w/blink.sh @@ -4,10 +4,10 @@ # Standard "blink" program in wiringPi. Blinks an LED connected # to the LED on the Quick2Wire board # -# Copyright (c) 2012-2013 Gordon Henderson. +# Copyright (c) 2012-2013 Gordon Henderson. ####################################################################### # This file is part of wiringPi: -# https://projects.drogon.net/raspberry-pi/wiringpi/ +# https://github.com/WiringPi/WiringPi # # wiringPi is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/q2w/bright.c b/examples/q2w/bright.c index 2318834..784ed13 100644 --- a/examples/q2w/bright.c +++ b/examples/q2w/bright.c @@ -2,10 +2,10 @@ * bright.c: * Vary the Q2W LED brightness with the analog card * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/q2w/button.c b/examples/q2w/button.c index 1781f02..90ba6c7 100644 --- a/examples/q2w/button.c +++ b/examples/q2w/button.c @@ -2,10 +2,10 @@ * button.c: * Simple button test for the Quick2Wire interface board. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/q2w/volts.c b/examples/q2w/volts.c index e091093..ab2d07e 100644 --- a/examples/q2w/volts.c +++ b/examples/q2w/volts.c @@ -2,10 +2,10 @@ * volts.c: * Read in all 4 analogs on the Q2W analog board. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/rht03.c b/examples/rht03.c index 854f837..202d4b4 100644 --- a/examples/rht03.c +++ b/examples/rht03.c @@ -2,10 +2,10 @@ * rht03.c: * Driver for the MaxDetect series sensors * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/scrollPhat/Makefile b/examples/scrollPhat/Makefile index ac384d8..574792d 100644 --- a/examples/scrollPhat/Makefile +++ b/examples/scrollPhat/Makefile @@ -1,7 +1,7 @@ # # Makefile: # wiringPi - A "wiring" library for the Raspberry Pi -# https://projects.drogon.net/wiring-pi +# https://github.com/wiringPi/wiringPi # # Copyright (c) 2012-2015 Gordon Henderson ################################################################################# diff --git a/examples/scrollPhat/scphat.c b/examples/scrollPhat/scphat.c index 8f90bad..cba6c0f 100644 --- a/examples/scrollPhat/scphat.c +++ b/examples/scrollPhat/scphat.c @@ -1,12 +1,12 @@ /* * scphat.c: - * Little program to allow use of the Pimoroni Sctoll Phat + * Little program to allow use of the Pimoroni Scroll pHAT * from the command-line. * - * Copyright (c) 2015-2016 Gordon Henderson. + * Copyright (c) 2015-2016 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/scrollPhat/test.c b/examples/scrollPhat/test.c index e4d8021..ddf0c32 100644 --- a/examples/scrollPhat/test.c +++ b/examples/scrollPhat/test.c @@ -1,11 +1,11 @@ /* * test.c: - * Little test program forthe Pimoroni Scroll Phat. + * Little test program for the Pimoroni Scroll pHAT. * - * Copyright (c) 2015-2016 Gordon Henderson. + * Copyright (c) 2015-2016 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/serialRead.c b/examples/serialRead.c index 9ee11ac..8804788 100644 --- a/examples/serialRead.c +++ b/examples/serialRead.c @@ -2,10 +2,10 @@ * serial.c: * Example program to read bytes from the Serial line * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/serialTest.c b/examples/serialTest.c index 0d6da5f..ffc8d46 100644 --- a/examples/serialTest.c +++ b/examples/serialTest.c @@ -3,10 +3,10 @@ * Very simple program to test the serial port. Expects * the port to be looped back to itself * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/servo.c b/examples/servo.c index f9e40a5..508eafc 100755 --- a/examples/servo.c +++ b/examples/servo.c @@ -3,10 +3,10 @@ * Test of the softServo code. * Do not use this code - use the servoBlaster kernel module instead * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -45,7 +45,7 @@ int main() softServoSetup(cPin, -1, -1, -1, -1, -1, -1, -1); - /* +/* softServoWrite(1, -250); delay(1000); softServoWrite(1, 0); @@ -60,7 +60,7 @@ int main() delay(1000); softServoWrite(1, 1250); delay(1000); - */ +*/ /* softServoWrite (1, 1000) ; delay(1000); diff --git a/examples/softPwm.c b/examples/softPwm.c index 11f7ad0..b34df42 100644 --- a/examples/softPwm.c +++ b/examples/softPwm.c @@ -3,10 +3,10 @@ * Test of the software PWM driver. Needs 8 LEDs connected * to the Pi - e.g. Ladder board. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/softTone.c b/examples/softTone.c index 2f46783..94184fa 100644 --- a/examples/softTone.c +++ b/examples/softTone.c @@ -3,10 +3,10 @@ * Test of the softTone module in wiringPi * Plays a scale out on pin 3 - connect pizeo disc to pin 3 & 0v * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/speed.c b/examples/speed.c index 0a42b36..2cd2fe1 100644 --- a/examples/speed.c +++ b/examples/speed.c @@ -3,10 +3,10 @@ * Simple program to measure the speed of the various GPIO * access mechanisms. * - * Copyright (c) 2012-2013 Gordon Henderson. + * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/examples/spiSpeed.c b/examples/spiSpeed.c index 447b387..f9ae172 100644 --- a/examples/spiSpeed.c +++ b/examples/spiSpeed.c @@ -4,7 +4,7 @@ * Copyright (c) 2014 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/examples/test1.c b/examples/test1.c deleted file mode 100644 index 4c75711..0000000 --- a/examples/test1.c +++ /dev/null @@ -1,111 +0,0 @@ -/* - * test1.c: - * Simple test program to test the wiringPi functions - * This is a sequencer to make a patter appear on 8 LEDs - * connected to the GPIO pins. - * - * Copyright (c) 2012-2013 Gordon Henderson. - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with wiringPi. If not, see . - *********************************************************************** - */ - -#include - -#include -#include -#include - - -// Simple sequencer data -// Triplets of LED, On/Off and delay - -uint8_t data [] = -{ - 0, 1, 1, - 1, 1, 1, - 0, 0, 0, 2, 1, 1, - 1, 0, 0, 3, 1, 1, - 2, 0, 0, 4, 1, 1, - 3, 0, 0, 5, 1, 1, - 4, 0, 0, 6, 1, 1, - 5, 0, 0, 7, 1, 1, - 6, 0, 1, - 7, 0, 1, - - 0, 0, 1, // Extra delay - -// Back again - - 7, 1, 1, - 6, 1, 1, - 7, 0, 0, 5, 1, 1, - 6, 0, 0, 4, 1, 1, - 5, 0, 0, 3, 1, 1, - 4, 0, 0, 2, 1, 1, - 3, 0, 0, 1, 1, 1, - 2, 0, 0, 0, 1, 1, - 1, 0, 1, - 0, 0, 1, - - 0, 0, 1, // Extra delay - - 9, 9, 9, // End marker - -} ; - - -int main (void) -{ - int pin ; - int dataPtr ; - int l, s, d ; - - printf ("Raspberry Pi wiringPi test program\n") ; - - if (wiringPiSetup () == -1) - exit (1) ; - - for (pin = 0 ; pin < 8 ; ++pin) - pinMode (pin, OUTPUT) ; - - pinMode (8, INPUT) ; // Pin 8 SDA0 - Has on-board 2k2 pull-up resistor - - dataPtr = 0 ; - - for (;;) - { - l = data [dataPtr++] ; // LED - s = data [dataPtr++] ; // State - d = data [dataPtr++] ; // Duration (10ths) - - if ((l + s + d) == 27) - { - dataPtr = 0 ; - continue ; - } - - digitalWrite (l, s) ; - - if (digitalRead (8) == 0) // Pressed as our switch shorts to ground - delay (d * 10) ; // Faster! - else - delay (d * 100) ; - } - - return 0 ; -} diff --git a/examples/test2.c b/examples/test2.c deleted file mode 100644 index 580591e..0000000 --- a/examples/test2.c +++ /dev/null @@ -1,58 +0,0 @@ -/* - * test2.c: - * This tests the hardware PWM channel. - * - * Copyright (c) 2012-2013 Gordon Henderson. - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with wiringPi. If not, see . - *********************************************************************** - */ - -#include - -#include -#include -#include - -int main (void) -{ - int bright ; - - printf ("Raspberry Pi wiringPi PWM test program\n") ; - - if (wiringPiSetup () == -1) - exit (1) ; - - pinMode (1, PWM_OUTPUT) ; - - for (;;) - { - for (bright = 0 ; bright < 1024 ; ++bright) - { - pwmWrite (1, bright) ; - delay (1) ; - } - - for (bright = 1023 ; bright >= 0 ; --bright) - { - pwmWrite (1, bright) ; - delay (1) ; - } - } - - return 0 ; -} diff --git a/examples/tone.c b/examples/tone.c deleted file mode 100644 index 0e8a47d..0000000 --- a/examples/tone.c +++ /dev/null @@ -1,59 +0,0 @@ -/* - * tone.c: - * Test of the softTone module in wiringPi - * Plays a scale out on pin 3 - connect pizeo disc to pin 3 & 0v - * - * Copyright (c) 2012-2013 Gordon Henderson. - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with wiringPi. If not, see . - *********************************************************************** - */ - -#include -#include -#include - -#include -#include - -#define PIN 3 - -int scale [8] = { 262, 294, 330, 349, 392, 440, 494, 525 } ; - -int main () -{ - int i ; - - if (wiringPiSetup () == -1) - { - fprintf (stdout, "oops: %s\n", strerror (errno)) ; - return 1 ; - } - - softToneCreate (PIN) ; - - for (;;) - { - for (i = 0 ; i < 8 ; ++i) - { - printf ("%3d\n", i) ; - softToneWrite (PIN, scale [i]) ; - delay (500) ; - } - } - -} diff --git a/examples/wfi.c b/examples/wfi.c index 3216dcd..f4b53c3 100644 --- a/examples/wfi.c +++ b/examples/wfi.c @@ -15,7 +15,7 @@ * Copyright (c) 2012-2013 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/gpio/Makefile b/gpio/Makefile index 78f7dd8..5a74257 100755 --- a/gpio/Makefile +++ b/gpio/Makefile @@ -2,7 +2,7 @@ # Makefile: # The gpio command: # A swiss-army knige of GPIO shenanigans. -# https://projects.drogon.net/wiring-pi +# https://github.com/wiringPi/wiringPi # # Copyright (c) 2012-2016 Gordon Henderson ################################################################################# diff --git a/gpio/gpio.1 b/gpio/gpio.1 index d610a03..b1be603 100644 --- a/gpio/gpio.1 +++ b/gpio/gpio.1 @@ -105,7 +105,6 @@ BCM_GPIO pin numbers are always used with the export and edge commands. This causes the named extension to be initialised. Extensions comprise of a name (e.g. mcp23017) followed by a colon, then the pin-base, then more optional parameters depending on the extension type. -See the web page on http://wiringpi.com/the-gpio-utility/ .TP .B \-p @@ -329,7 +328,7 @@ in future releases once the /dev/gpiomem interface is fully operational. .LP WiringPi's home page .IP -http://wiringpi.com/ +https://github.com/WiringPi/WiringPi/ .SH AUTHOR diff --git a/gpio/gpio.c b/gpio/gpio.c index 99a5c77..d068e77 100755 --- a/gpio/gpio.c +++ b/gpio/gpio.c @@ -5,7 +5,7 @@ * Copyright (c) 2012-2018 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/gpio/readall.c b/gpio/readall.c index 42d6365..932f8e1 100755 --- a/gpio/readall.c +++ b/gpio/readall.c @@ -4,7 +4,7 @@ * Copyright (c) 2012-2018 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/newVersion b/newVersion index ed4b438..e63b927 100644 --- a/newVersion +++ b/newVersion @@ -40,8 +40,11 @@ Section: libraries Priority: optional Architecture: armhf Depends: libc6 -Maintainer: Gordon Henderson +Maintainer: Phil Howard +Uploaders: Phil Howard Description: The wiringPi libraries, headers and gpio command Libraries to allow GPIO access on a Raspberry Pi from C and C++ and BASIC programs as well as from the command-line +Homepage: https://github.com/WiringPi/WiringPi/ +Bugs: https://github.com/WiringPi/WiringPi/ EOF diff --git a/pins/pins.tex b/pins/pins.tex index c3753e9..69b29bd 100644 --- a/pins/pins.tex +++ b/pins/pins.tex @@ -37,7 +37,7 @@ \begin{center} \bfseries{WiringPi: GPIO Pin Numbering Tables}\\ -\tt{http://wiringpi.com/} +\tt{https://github.com/WiringPi/WiringPi} \end{center} \begin{center} diff --git a/version.h b/version.h index a6fa19f..10c398a 100755 --- a/version.h +++ b/version.h @@ -1,3 +1,3 @@ -#define VERSION "2.62" +#define VERSION "2.70" #define VERSION_MAJOR 2 -#define VERSION_MINOR 62 +#define VERSION_MINOR 70 diff --git a/wiringPi/Makefile b/wiringPi/Makefile index 3b825da..28501ec 100644 --- a/wiringPi/Makefile +++ b/wiringPi/Makefile @@ -5,7 +5,7 @@ # Copyright (c) 2012-2015 Gordon Henderson ################################################################################# # This file is part of wiringPi: -# https://projects.drogon.net/raspberry-pi/wiringpi/ +# https://github.com/wiringPi/wiringPi # # wiringPi is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPi/README b/wiringPi/README deleted file mode 100755 index 9c6abcc..0000000 --- a/wiringPi/README +++ /dev/null @@ -1,8 +0,0 @@ - -WiringPi -An implementation of most of the Arduino Wiring functions for the Raspberry Pi, -along with many more features and libraries to support hardware, etc. on the Raspberry Pi - -Full details at: -https://github.com/WiringPi/WiringPi - diff --git a/wiringPi/ads1115.c b/wiringPi/ads1115.c index 648e612..94ac22a 100644 --- a/wiringPi/ads1115.c +++ b/wiringPi/ads1115.c @@ -4,7 +4,7 @@ * Copyright (c) 2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/ads1115.h b/wiringPi/ads1115.h index 5c91735..54b3554 100644 --- a/wiringPi/ads1115.h +++ b/wiringPi/ads1115.h @@ -4,7 +4,7 @@ * Copyright (c) 2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/bmp180.c b/wiringPi/bmp180.c index bad4bb3..c273ff3 100644 --- a/wiringPi/bmp180.c +++ b/wiringPi/bmp180.c @@ -10,7 +10,7 @@ * *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/bmp180.h b/wiringPi/bmp180.h index 4a6d13a..74e6f14 100644 --- a/wiringPi/bmp180.h +++ b/wiringPi/bmp180.h @@ -5,7 +5,7 @@ * Copyright (c) 2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/drcNet.c b/wiringPi/drcNet.c index 0964ff7..71b7435 100644 --- a/wiringPi/drcNet.c +++ b/wiringPi/drcNet.c @@ -4,7 +4,7 @@ * Copyright (c) 2016-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/drcNet.h b/wiringPi/drcNet.h index 00f9b05..053efd6 100644 --- a/wiringPi/drcNet.h +++ b/wiringPi/drcNet.h @@ -4,7 +4,7 @@ * Copyright (c) 2016-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/drcSerial.c b/wiringPi/drcSerial.c index db7cc09..c5cb2b1 100644 --- a/wiringPi/drcSerial.c +++ b/wiringPi/drcSerial.c @@ -4,7 +4,7 @@ * Copyright (c) 2013-2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/drcSerial.h b/wiringPi/drcSerial.h index 29e988e..7da1f7d 100644 --- a/wiringPi/drcSerial.h +++ b/wiringPi/drcSerial.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/ds1302.h b/wiringPi/ds1302.h deleted file mode 100755 index e82b3ed..0000000 --- a/wiringPi/ds1302.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * ds1302.h: - * Real Time clock - * - * Copyright (c) 2013 Gordon Henderson. - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with wiringPi. If not, see . - *********************************************************************** - */ - -#ifdef __cplusplus -extern "C" { -#endif - -extern unsigned int ds1302rtcRead (const int reg) ; -extern void ds1302rtcWrite (const int reg, const unsigned int data) ; - -extern unsigned int ds1302ramRead (const int addr) ; -extern void ds1302ramWrite (const int addr, const unsigned int data) ; - -extern void ds1302clockRead (int clockData [8]) ; -extern void ds1302clockWrite (const int clockData [8]) ; - -extern void ds1302trickleCharge (const int diodes, const int resistors) ; - -extern void ds1302setup (const int clockPin, const int dataPin, const int csPin) ; - -#ifdef __cplusplus -} -#endif diff --git a/wiringPi/ds18b20.c b/wiringPi/ds18b20.c index 533398e..c4ec4fd 100644 --- a/wiringPi/ds18b20.c +++ b/wiringPi/ds18b20.c @@ -5,7 +5,7 @@ * Copyright (c) 2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/ds18b20.h b/wiringPi/ds18b20.h index a9ea291..1a59d5d 100644 --- a/wiringPi/ds18b20.h +++ b/wiringPi/ds18b20.h @@ -5,7 +5,7 @@ * Copyright (c) 2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/htu21d.c b/wiringPi/htu21d.c index 46c0fcb..d47f4de 100644 --- a/wiringPi/htu21d.c +++ b/wiringPi/htu21d.c @@ -5,7 +5,7 @@ * Copyright (c) 2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/htu21d.h b/wiringPi/htu21d.h index 3965c54..9e0d4e1 100644 --- a/wiringPi/htu21d.h +++ b/wiringPi/htu21d.h @@ -5,7 +5,7 @@ * Copyright (c) 2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/lcd.c b/wiringPi/lcd.c deleted file mode 100755 index f123db2..0000000 --- a/wiringPi/lcd.c +++ /dev/null @@ -1,380 +0,0 @@ -/* - * lcd.c: - * Text-based LCD driver. - * This is designed to drive the parallel interface LCD drivers - * based in the Hitachi HD44780U controller and compatables. - * - * Copyright (c) 2012 Gordon Henderson. - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with wiringPi. If not, see . - *********************************************************************** - */ - -#include -#include -#include -#include - -#include "wiringPi.h" -#include "lcd.h" - -// Commands - -#define LCD_CLEAR 0x01 -#define LCD_HOME 0x02 -#define LCD_ENTRY 0x04 -#define LCD_ON_OFF 0x08 -#define LCD_CDSHIFT 0x10 -#define LCD_FUNC 0x20 -#define LCD_CGRAM 0x40 -#define LCD_DGRAM 0x80 - -#define LCD_ENTRY_SH 0x01 -#define LCD_ENTRY_ID 0x02 - -#define LCD_ON_OFF_B 0x01 -#define LCD_ON_OFF_C 0x02 -#define LCD_ON_OFF_D 0x04 - -#define LCD_FUNC_F 0x04 -#define LCD_FUNC_N 0x08 -#define LCD_FUNC_DL 0x10 - -#define LCD_CDSHIFT_RL 0x04 - -struct lcdDataStruct -{ - uint8_t bits, rows, cols ; - uint8_t rsPin, strbPin ; - uint8_t dataPins [8] ; -} ; - -struct lcdDataStruct *lcds [MAX_LCDS] ; - - -/* - * strobe: - * Toggle the strobe (Really the "E") pin to the device. - * According to the docs, data is latched on the falling edge. - ********************************************************************************* - */ - -static void strobe (struct lcdDataStruct *lcd) -{ - -// Note timing changes for new version of delayMicroseconds () - - digitalWrite (lcd->strbPin, 1) ; delayMicroseconds (50) ; - digitalWrite (lcd->strbPin, 0) ; delayMicroseconds (50) ; -} - - -/* - * sentDataCmd: - * Send an data or command byte to the display. - ********************************************************************************* - */ - -static void sendDataCmd (struct lcdDataStruct *lcd, uint8_t data) -{ - uint8_t i, d4 ; - - if (lcd->bits == 4) - { - d4 = (data >> 4) & 0x0F; - for (i = 0 ; i < 4 ; ++i) - { - digitalWrite (lcd->dataPins [i], (d4 & 1)) ; - d4 >>= 1 ; - } - strobe (lcd) ; - - d4 = data & 0x0F ; - for (i = 0 ; i < 4 ; ++i) - { - digitalWrite (lcd->dataPins [i], (d4 & 1)) ; - d4 >>= 1 ; - } - } - else - { - for (i = 0 ; i < 8 ; ++i) - { - digitalWrite (lcd->dataPins [i], (data & 1)) ; - data >>= 1 ; - } - } - strobe (lcd) ; -} - - -/* - * putCommand: - * Send a command byte to the display - ********************************************************************************* - */ - -static void putCommand (struct lcdDataStruct *lcd, uint8_t command) -{ - digitalWrite (lcd->rsPin, 0) ; - sendDataCmd (lcd, command) ; -} - -static void put4Command (struct lcdDataStruct *lcd, uint8_t command) -{ - uint8_t i ; - - digitalWrite (lcd->rsPin, 0) ; - - for (i = 0 ; i < 4 ; ++i) - { - digitalWrite (lcd->dataPins [i], (command & 1)) ; - command >>= 1 ; - } - strobe (lcd) ; -} - - -/* - ********************************************************************************* - * User Code below here - ********************************************************************************* - */ - -/* - * lcdHome: lcdClear: - * Home the cursor or clear the screen. - ********************************************************************************* - */ - -void lcdHome (int fd) -{ - struct lcdDataStruct *lcd = lcds [fd] ; - putCommand (lcd, LCD_HOME) ; -} - -void lcdClear (int fd) -{ - struct lcdDataStruct *lcd = lcds [fd] ; - putCommand (lcd, LCD_CLEAR) ; -} - - -/* - * lcdSendCommand: - * Send any arbitary command to the display - ********************************************************************************* - */ - -void lcdSendCommand (int fd, uint8_t command) -{ - struct lcdDataStruct *lcd = lcds [fd] ; - putCommand (lcd, command) ; -} - -/* - * lcdPosition: - * Update the position of the cursor on the display - ********************************************************************************* - */ - - -void lcdPosition (int fd, int x, int y) -{ - static uint8_t rowOff [4] = { 0x00, 0x40, 0x14, 0x54 } ; - struct lcdDataStruct *lcd = lcds [fd] ; - - putCommand (lcd, x + (LCD_DGRAM | rowOff [y])) ; -} - - -/* - * lcdPutchar: - * Send a data byte to be displayed on the display - ********************************************************************************* - */ - -void lcdPutchar (int fd, uint8_t data) -{ - struct lcdDataStruct *lcd = lcds [fd] ; - - digitalWrite (lcd->rsPin, 1) ; - sendDataCmd (lcd, data) ; -} - - -/* - * lcdPuts: - * Send a string to be displayed on the display - ********************************************************************************* - */ - -void lcdPuts (int fd, char *string) -{ - while (*string) - lcdPutchar (fd, *string++) ; -} - - -/* - * lcdPrintf: - * Printf to an LCD display - ********************************************************************************* - */ - -void lcdPrintf (int fd, char *message, ...) -{ - va_list argp ; - char buffer [1024] ; - - va_start (argp, message) ; - vsnprintf (buffer, 1023, message, argp) ; - va_end (argp) ; - - lcdPuts (fd, buffer) ; -} - - -/* - * lcdInit: - * Take a lot of parameters and initialise the LCD, and return a handle to - * that LCD, or -1 if any error. - ********************************************************************************* - */ - -int lcdInit (int rows, int cols, int bits, int rs, int strb, - int d0, int d1, int d2, int d3, int d4, int d5, int d6, int d7) -{ - static int initialised = 0 ; - - uint8_t func ; - int i ; - int lcdFd = -1 ; - struct lcdDataStruct *lcd ; - - if (initialised == 0) - { - initialised = 1 ; - for (i = 0 ; i < MAX_LCDS ; ++i) - lcds [i] = NULL ; - } - -// Simple sanity checks - - if (! ((bits == 4) || (bits == 8))) - return -1 ; - - if ((rows < 0) || (rows > 20)) - return -1 ; - - if ((cols < 0) || (cols > 20)) - return -1 ; - -// Create a new LCD: - - for (i = 0 ; i < MAX_LCDS ; ++i) - { - if (lcds [i] == NULL) - { - lcdFd = i ; - break ; - } - } - - if (lcdFd == -1) - return -1 ; - - lcd = malloc (sizeof (struct lcdDataStruct)) ; - if (lcd == NULL) - return -1 ; - - lcd->rsPin = rs ; - lcd->strbPin = strb ; - lcd->bits = 8 ; // For now - we'll set it properly later. - lcd->rows = rows ; - lcd->cols = cols ; - - lcd->dataPins [0] = d0 ; - lcd->dataPins [1] = d1 ; - lcd->dataPins [2] = d2 ; - lcd->dataPins [3] = d3 ; - lcd->dataPins [4] = d4 ; - lcd->dataPins [5] = d5 ; - lcd->dataPins [6] = d6 ; - lcd->dataPins [7] = d7 ; - - lcds [lcdFd] = lcd ; - - digitalWrite (lcd->rsPin, 0) ; pinMode (lcd->rsPin, OUTPUT) ; - digitalWrite (lcd->strbPin, 0) ; pinMode (lcd->strbPin, OUTPUT) ; - - for (i = 0 ; i < bits ; ++i) - { - digitalWrite (lcd->dataPins [i], 0) ; - pinMode (lcd->dataPins [i], OUTPUT) ; - } - delay (35) ; // mS - - -// 4-bit mode? -// OK. This is a PIG and it's not at all obvious from the documentation I had, -// so I guess some others have worked through either with better documentation -// or more trial and error... Anyway here goes: -// -// It seems that the controller needs to see the FUNC command at least 3 times -// consecutively - in 8-bit mode. If you're only using 8-bit mode, then it appears -// that you can get away with one func-set, however I'd not rely on it... -// -// So to set 4-bit mode, you need to send the commands one nibble at a time, -// the same three times, but send the command to set it into 8-bit mode those -// three times, then send a final 4th command to set it into 4-bit mode, and only -// then can you flip the switch for the rest of the library to work in 4-bit -// mode which sends the commands as 2 x 4-bit values. - - if (bits == 4) - { - func = LCD_FUNC | LCD_FUNC_DL ; // Set 8-bit mode 3 times - put4Command (lcd, func >> 4) ; delay (35) ; - put4Command (lcd, func >> 4) ; delay (35) ; - put4Command (lcd, func >> 4) ; delay (35) ; - func = LCD_FUNC ; // 4th set: 4-bit mode - put4Command (lcd, func >> 4) ; delay (35) ; - lcd->bits = 4 ; - } - else - { - func = LCD_FUNC | LCD_FUNC_DL ; - putCommand (lcd, func ) ; delay (35) ; - putCommand (lcd, func ) ; delay (35) ; - putCommand (lcd, func ) ; delay (35) ; - } - - if (lcd->rows > 1) - { - func |= LCD_FUNC_N ; - putCommand (lcd, func) ; delay (35) ; - } - -// Rest of the initialisation sequence - - putCommand (lcd, LCD_ON_OFF | LCD_ON_OFF_D) ; delay (2) ; - putCommand (lcd, LCD_ENTRY | LCD_ENTRY_ID) ; delay (2) ; - putCommand (lcd, LCD_CDSHIFT | LCD_CDSHIFT_RL) ; delay (2) ; - putCommand (lcd, LCD_CLEAR) ; delay (5) ; - - return lcdFd ; -} diff --git a/wiringPi/lcd.h b/wiringPi/lcd.h deleted file mode 100755 index 0a0e598..0000000 --- a/wiringPi/lcd.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * lcd.h: - * Text-based LCD driver. - * This is designed to drive the parallel interface LCD drivers - * based in the Hitachi HD44780U controller and compatables. - * - * Copyright (c) 2012 Gordon Henderson. - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with wiringPi. If not, see . - *********************************************************************** - */ - -#define MAX_LCDS 8 - -#ifdef __cplusplus -extern "C" { -#endif - -extern void lcdHome (const int fd) ; -extern void lcdClear (const int fd) ; -extern void lcdDisplay (const int fd, int state) ; -extern void lcdCursor (const int fd, int state) ; -extern void lcdCursorBlink (const int fd, int state) ; -extern void lcdSendCommand (const int fd, unsigned char command) ; -extern void lcdPosition (const int fd, int x, int y) ; -extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ; -extern void lcdPutchar (const int fd, unsigned char data) ; -extern void lcdPuts (const int fd, const char *string) ; -extern void lcdPrintf (const int fd, const char *message, ...) ; - -extern int lcdInit (const int rows, const int cols, const int bits, - const int rs, const int strb, - const int d0, const int d1, const int d2, const int d3, const int d4, - const int d5, const int d6, const int d7) ; - -#ifdef __cplusplus -} -#endif diff --git a/wiringPi/lcd128x64.h b/wiringPi/lcd128x64.h deleted file mode 100755 index b448bbc..0000000 --- a/wiringPi/lcd128x64.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * lcd128x64.h: - * - * Copyright (c) 2013 Gordon Henderson. - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with wiringPi. If not, see . - *********************************************************************** - */ - -extern void lcd128x64setOrigin (int x, int y) ; -extern void lcd128x64setOrientation (int orientation) ; -extern void lcd128x64orientCoordinates (int *x, int *y) ; -extern void lcd128x64getScreenSize (int *x, int *y) ; -extern void lcd128x64point (int x, int y, int colour) ; -extern void lcd128x64line (int x0, int y0, int x1, int y1, int colour) ; -extern void lcd128x64lineTo (int x, int y, int colour) ; -extern void lcd128x64rectangle (int x1, int y1, int x2, int y2, int colour, int filled) ; -extern void lcd128x64circle (int x, int y, int r, int colour, int filled) ; -extern void lcd128x64ellipse (int cx, int cy, int xRadius, int yRadius, int colour, int filled) ; -extern void lcd128x64putchar (int x, int y, int c, int bgCol, int fgCol) ; -extern void lcd128x64puts (int x, int y, const char *str, int bgCol, int fgCol) ; -extern void lcd128x64update (void) ; -extern void lcd128x64clear (int colour) ; - -extern int lcd128x64setup (void) ; diff --git a/wiringPi/max31855.c b/wiringPi/max31855.c index d86cabd..46fe74d 100644 --- a/wiringPi/max31855.c +++ b/wiringPi/max31855.c @@ -4,7 +4,7 @@ * Copyright (c) 2012-2015 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/max31855.h b/wiringPi/max31855.h index 385c4bd..eeb07ff 100644 --- a/wiringPi/max31855.h +++ b/wiringPi/max31855.h @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/max5322.c b/wiringPi/max5322.c index e56b085..888b01a 100644 --- a/wiringPi/max5322.c +++ b/wiringPi/max5322.c @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/max5322.h b/wiringPi/max5322.h index a217cf8..8a0718f 100644 --- a/wiringPi/max5322.h +++ b/wiringPi/max5322.h @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/maxdetect.h b/wiringPi/maxdetect.h deleted file mode 100755 index a1fd742..0000000 --- a/wiringPi/maxdetect.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * maxdetect.h: - * Driver for the MaxDetect series sensors - * - * Copyright (c) 2013 Gordon Henderson. - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with wiringPi. If not, see . - *********************************************************************** - */ - - -#ifdef __cplusplus -extern "C" { -#endif - -// Main generic function - -int maxDetectRead (const int pin, unsigned char buffer [4]) ; - -// Individual sensors - -int readRHT03 (const int pin, int *temp, int *rh) ; - -#ifdef __cplusplus -} -#endif diff --git a/wiringPi/mcp23008.c b/wiringPi/mcp23008.c index 71757a8..bff6f49 100644 --- a/wiringPi/mcp23008.c +++ b/wiringPi/mcp23008.c @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23008.h b/wiringPi/mcp23008.h index e9299a8..e600e8a 100644 --- a/wiringPi/mcp23008.h +++ b/wiringPi/mcp23008.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23016.c b/wiringPi/mcp23016.c index 928d9e5..b4669ba 100644 --- a/wiringPi/mcp23016.c +++ b/wiringPi/mcp23016.c @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23016.h b/wiringPi/mcp23016.h index f9b5cc5..bdec133 100644 --- a/wiringPi/mcp23016.h +++ b/wiringPi/mcp23016.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23016reg.h b/wiringPi/mcp23016reg.h index 9aea92d..28ab655 100644 --- a/wiringPi/mcp23016reg.h +++ b/wiringPi/mcp23016reg.h @@ -6,7 +6,7 @@ * chip. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23017.c b/wiringPi/mcp23017.c index 4c3952d..eedf059 100644 --- a/wiringPi/mcp23017.c +++ b/wiringPi/mcp23017.c @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23017.h b/wiringPi/mcp23017.h index 79b4d7b..8cb9c7e 100644 --- a/wiringPi/mcp23017.h +++ b/wiringPi/mcp23017.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23s08.c b/wiringPi/mcp23s08.c index f293f3a..d9dbee7 100644 --- a/wiringPi/mcp23s08.c +++ b/wiringPi/mcp23s08.c @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23s08.h b/wiringPi/mcp23s08.h index ebf93d1..13d2a09 100644 --- a/wiringPi/mcp23s08.h +++ b/wiringPi/mcp23s08.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23s17.c b/wiringPi/mcp23s17.c index 42b0358..daf7f40 100644 --- a/wiringPi/mcp23s17.c +++ b/wiringPi/mcp23s17.c @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23s17.h b/wiringPi/mcp23s17.h index 3b2a808..b82fa80 100644 --- a/wiringPi/mcp23s17.h +++ b/wiringPi/mcp23s17.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23x08.h b/wiringPi/mcp23x08.h index c4e6b27..9271eee 100644 --- a/wiringPi/mcp23x08.h +++ b/wiringPi/mcp23x08.h @@ -7,7 +7,7 @@ * an the MXP23S17 which has an SPI interface. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp23x0817.h b/wiringPi/mcp23x0817.h index 58bc038..1980b9e 100644 --- a/wiringPi/mcp23x0817.h +++ b/wiringPi/mcp23x0817.h @@ -8,7 +8,7 @@ * interface, and the MXP23Sxx (08/17) which has an SPI interface. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp3002.c b/wiringPi/mcp3002.c index 9ebf3e4..04ce10a 100644 --- a/wiringPi/mcp3002.c +++ b/wiringPi/mcp3002.c @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp3002.h b/wiringPi/mcp3002.h index 0cd727f..c779a7f 100644 --- a/wiringPi/mcp3002.h +++ b/wiringPi/mcp3002.h @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp3004.c b/wiringPi/mcp3004.c index be8383e..0bfc8a7 100644 --- a/wiringPi/mcp3004.c +++ b/wiringPi/mcp3004.c @@ -6,7 +6,7 @@ * Thanks also to "ShorTie" on IRC for some remote debugging help! *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp3004.h b/wiringPi/mcp3004.h index a07c0bf..a99a514 100644 --- a/wiringPi/mcp3004.h +++ b/wiringPi/mcp3004.h @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp3422.c b/wiringPi/mcp3422.c index be14db6..15934cb 100644 --- a/wiringPi/mcp3422.c +++ b/wiringPi/mcp3422.c @@ -6,7 +6,7 @@ * Copyright (c) 2013-2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp3422.h b/wiringPi/mcp3422.h index 72647d4..2fa3991 100644 --- a/wiringPi/mcp3422.h +++ b/wiringPi/mcp3422.h @@ -3,7 +3,7 @@ * Extend wiringPi with the MCP3422/3/4 I2C ADC chip *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp4802.c b/wiringPi/mcp4802.c index ef104ed..4a411eb 100644 --- a/wiringPi/mcp4802.c +++ b/wiringPi/mcp4802.c @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/mcp4802.h b/wiringPi/mcp4802.h index effa024..da869be 100644 --- a/wiringPi/mcp4802.h +++ b/wiringPi/mcp4802.h @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/pcf8574.c b/wiringPi/pcf8574.c index e0b686a..402257e 100644 --- a/wiringPi/pcf8574.c +++ b/wiringPi/pcf8574.c @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/pcf8574.h b/wiringPi/pcf8574.h index 8e2d818..48efe61 100644 --- a/wiringPi/pcf8574.h +++ b/wiringPi/pcf8574.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/pcf8591.c b/wiringPi/pcf8591.c index 66c6255..902d8a8 100644 --- a/wiringPi/pcf8591.c +++ b/wiringPi/pcf8591.c @@ -5,7 +5,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/pcf8591.h b/wiringPi/pcf8591.h index 6b44ccf..9f076a8 100644 --- a/wiringPi/pcf8591.h +++ b/wiringPi/pcf8591.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/piHiPri.c b/wiringPi/piHiPri.c index d2f3b4e..e1905ee 100644 --- a/wiringPi/piHiPri.c +++ b/wiringPi/piHiPri.c @@ -6,7 +6,7 @@ * Copyright (c) 2012 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/piNes.c b/wiringPi/piNes.c deleted file mode 100755 index a115050..0000000 --- a/wiringPi/piNes.c +++ /dev/null @@ -1,113 +0,0 @@ -/* - * piNes.c: - * Driver for the NES Joystick controller on the Raspberry Pi - * Copyright (c) 2012 Gordon Henderson - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with wiringPi. - * If not, see . - *********************************************************************** - */ - -#include - -#include "piNes.h" - -#define MAX_NES_JOYSTICKS 8 - -#define NES_RIGHT 0x01 -#define NES_LEFT 0x02 -#define NES_DOWN 0x04 -#define NES_UP 0x08 -#define NES_START 0x10 -#define NES_SELECT 0x20 -#define NES_B 0x40 -#define NES_A 0x80 - - -#define PULSE_TIME 25 - -// Data to store the pins for each controller - -struct nesPinsStruct -{ - unsigned int cPin, dPin, lPin ; -} ; - -static struct nesPinsStruct nesPins [MAX_NES_JOYSTICKS] ; - -static int joysticks = 0 ; - - -/* - * setupNesJoystick: - * Create a new NES joystick interface, program the pins, etc. - ********************************************************************************* - */ - -int setupNesJoystick (int dPin, int cPin, int lPin) -{ - if (joysticks == MAX_NES_JOYSTICKS) - return -1 ; - - nesPins [joysticks].dPin = dPin ; - nesPins [joysticks].cPin = cPin ; - nesPins [joysticks].lPin = lPin ; - - digitalWrite (lPin, LOW) ; - digitalWrite (cPin, LOW) ; - - pinMode (lPin, OUTPUT) ; - pinMode (cPin, OUTPUT) ; - pinMode (dPin, INPUT) ; - - return joysticks++ ; -} - - -/* - * readNesJoystick: - * Do a single scan of the NES Joystick. - ********************************************************************************* - */ - -unsigned int readNesJoystick (int joystick) -{ - unsigned int value = 0 ; - int i ; - - struct nesPinsStruct *pins = &nesPins [joystick] ; - -// Toggle Latch - which presents the first bit - - digitalWrite (pins->lPin, HIGH) ; delayMicroseconds (PULSE_TIME) ; - digitalWrite (pins->lPin, LOW) ; delayMicroseconds (PULSE_TIME) ; - -// Read first bit - - value = digitalRead (pins->dPin) ; - -// Now get the next 7 bits with the clock - - for (i = 0 ; i < 7 ; ++i) - { - digitalWrite (pins->cPin, HIGH) ; delayMicroseconds (PULSE_TIME) ; - digitalWrite (pins->cPin, LOW) ; delayMicroseconds (PULSE_TIME) ; - value = (value << 1) | digitalRead (pins->dPin) ; - } - - return value ^ 0xFF ; -} diff --git a/wiringPi/piNes.h b/wiringPi/piNes.h deleted file mode 100755 index 897f181..0000000 --- a/wiringPi/piNes.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * piNes.h: - * Driver for the NES Joystick controller on the Raspberry Pi - * Copyright (c) 2012 Gordon Henderson - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with wiringPi. - * If not, see . - *********************************************************************** - */ - -#define MAX_NES_JOYSTICKS 8 - -#define NES_RIGHT 0x01 -#define NES_LEFT 0x02 -#define NES_DOWN 0x04 -#define NES_UP 0x08 -#define NES_START 0x10 -#define NES_SELECT 0x20 -#define NES_B 0x40 -#define NES_A 0x80 - -#ifdef __cplusplus -extern "C" { -#endif - -extern int setupNesJoystick (int dPin, int cPin, int lPin) ; -extern unsigned int readNesJoystick (int joystick) ; - -#ifdef __cplusplus -} -#endif diff --git a/wiringPi/piThread.c b/wiringPi/piThread.c index b0499be..e943d82 100644 --- a/wiringPi/piThread.c +++ b/wiringPi/piThread.c @@ -5,7 +5,7 @@ * Copyright (c) 2012 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/pseudoPins.c b/wiringPi/pseudoPins.c index c2bf5e0..36afe71 100644 --- a/wiringPi/pseudoPins.c +++ b/wiringPi/pseudoPins.c @@ -14,7 +14,7 @@ * Copyright (c) 2012-2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/pseudoPins.h b/wiringPi/pseudoPins.h index bef4660..6451297 100644 --- a/wiringPi/pseudoPins.h +++ b/wiringPi/pseudoPins.h @@ -5,7 +5,7 @@ * Copyright (c) 2012-2016 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/rht03.c b/wiringPi/rht03.c index 1129cfd..25d844f 100644 --- a/wiringPi/rht03.c +++ b/wiringPi/rht03.c @@ -4,7 +4,7 @@ * Copyright (c) 2016-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/rht03.h b/wiringPi/rht03.h index 9523fbf..4310129 100644 --- a/wiringPi/rht03.h +++ b/wiringPi/rht03.h @@ -4,7 +4,7 @@ * Copyright (c) 2016-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/scrollPhat.h b/wiringPi/scrollPhat.h deleted file mode 100755 index 0e762b1..0000000 --- a/wiringPi/scrollPhat.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * scrollPhat.h: - * Simple driver for the Pimoroni Scroll Phat device - * - * Copyright (c) 2015 Gordon Henderson. - *********************************************************************** - * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ - * - * wiringPi is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wiringPi is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with wiringPi. If not, see . - *********************************************************************** - */ - -extern void scrollPhatPoint (int x, int y, int colour) ; -extern void scrollPhatLine (int x0, int y0, int x1, int y1, int colour) ; -extern void scrollPhatLineTo (int x, int y, int colour) ; -extern void scrollPhatRectangle (int x1, int y1, int x2, int y2, int colour, int filled) ; -extern void scrollPhatUpdate (void) ; -extern void scrollPhatClear (void) ; - -extern int scrollPhatPutchar (int c) ; -//extern void scrollPhatPutchar (int c) ; -extern void scrollPhatPuts (const char *str) ; -extern void scrollPhatPrintf (const char *message, ...) ; -extern void scrollPhatPrintSpeed (const int cps10) ; - -extern void scrollPhatIntensity (const int percent) ; -extern int scrollPhatSetup (void) ; diff --git a/wiringPi/sn3218.c b/wiringPi/sn3218.c index d9b9113..1302286 100644 --- a/wiringPi/sn3218.c +++ b/wiringPi/sn3218.c @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/sn3218.h b/wiringPi/sn3218.h index 580d5f9..eb1e034 100644 --- a/wiringPi/sn3218.h +++ b/wiringPi/sn3218.h @@ -4,7 +4,7 @@ * Copyright (c) 2012-2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/softPwm.c b/wiringPi/softPwm.c index 9e0aa37..6dccb05 100644 --- a/wiringPi/softPwm.c +++ b/wiringPi/softPwm.c @@ -4,7 +4,7 @@ * Copyright (c) 2012-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/softPwm.h b/wiringPi/softPwm.h index 0351da5..c1ea129 100644 --- a/wiringPi/softPwm.h +++ b/wiringPi/softPwm.h @@ -4,7 +4,7 @@ * Copyright (c) 2012 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/softServo.c b/wiringPi/softServo.c index 949de8b..a0a79e3 100755 --- a/wiringPi/softServo.c +++ b/wiringPi/softServo.c @@ -5,7 +5,7 @@ * Copyright (c) 2012 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/softServo.h b/wiringPi/softServo.h index 794cf55..86d1aae 100644 --- a/wiringPi/softServo.h +++ b/wiringPi/softServo.h @@ -5,7 +5,7 @@ * Copyright (c) 2012 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/softTone.c b/wiringPi/softTone.c index e2fb737..0515336 100644 --- a/wiringPi/softTone.c +++ b/wiringPi/softTone.c @@ -8,7 +8,7 @@ * Copyright (c) 2012 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/softTone.h b/wiringPi/softTone.h index a93c5af..5e3cf57 100644 --- a/wiringPi/softTone.h +++ b/wiringPi/softTone.h @@ -8,7 +8,7 @@ * Copyright (c) 2012 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/sr595.c b/wiringPi/sr595.c index 8280618..b42e583 100644 --- a/wiringPi/sr595.c +++ b/wiringPi/sr595.c @@ -9,7 +9,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/sr595.h b/wiringPi/sr595.h index 4a26dc7..8f19bfd 100644 --- a/wiringPi/sr595.h +++ b/wiringPi/sr595.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index 43269eb..6bf39bc 100755 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -9,7 +9,7 @@ * the clock section /grr/mutter/ *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as @@ -790,7 +790,7 @@ int piGpioLayout (void) fprintf (stderr, "Unable to determine hardware version. I see: %s,\n", line) ; fprintf (stderr, " - expecting BCM2708, BCM2709 or BCM2835.\n") ; fprintf (stderr, "If this is a genuine Raspberry Pi then please report this\n") ; - fprintf (stderr, "to projects@drogon.net. If this is not a Raspberry Pi then you\n") ; + fprintf (stderr, "at GitHub.com/wiringPi/wiringPi. If this is not a Raspberry Pi then you\n") ; fprintf (stderr, "are on your own as wiringPi is designed to support the\n") ; fprintf (stderr, "Raspberry Pi ONLY.\n") ; exit (EXIT_FAILURE) ; @@ -2261,8 +2261,6 @@ int wiringPiSetup (void) int fd ; int model, rev, mem, maker, overVolted ; - // It's actually a fatal error to call any of the wiringPiSetup routines more than once, - // you run out of file handles. if (wiringPiSetuped) return 0 ; diff --git a/wiringPi/wiringPi.h b/wiringPi/wiringPi.h index 5c30f01..dd60cff 100755 --- a/wiringPi/wiringPi.h +++ b/wiringPi/wiringPi.h @@ -4,7 +4,7 @@ * Copyright (c) 2012-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPi/wiringPiI2C.c b/wiringPi/wiringPiI2C.c index b0ee5d3..3fa787d 100644 --- a/wiringPi/wiringPiI2C.c +++ b/wiringPi/wiringPiI2C.c @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/wiringPiI2C.h b/wiringPi/wiringPiI2C.h index 6db8c68..73f031c 100644 --- a/wiringPi/wiringPiI2C.h +++ b/wiringPi/wiringPiI2C.h @@ -4,7 +4,7 @@ * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/wiringPiSPI.c b/wiringPi/wiringPiSPI.c index 749c8fe..94e32a8 100755 --- a/wiringPi/wiringPiSPI.c +++ b/wiringPi/wiringPiSPI.c @@ -4,7 +4,7 @@ * Copyright (c) 2012-2015 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/wiringPiSPI.h b/wiringPi/wiringPiSPI.h index 3980321..44a8cfc 100644 --- a/wiringPi/wiringPiSPI.h +++ b/wiringPi/wiringPiSPI.h @@ -4,7 +4,7 @@ * Copyright (c) 2012-2015 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as diff --git a/wiringPi/wiringSerial.c b/wiringPi/wiringSerial.c index e1587ad..9d59702 100644 --- a/wiringPi/wiringSerial.c +++ b/wiringPi/wiringSerial.c @@ -3,7 +3,7 @@ * Handle a serial port *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPi/wiringSerial.h b/wiringPi/wiringSerial.h index 430dc73..1025f9b 100644 --- a/wiringPi/wiringSerial.h +++ b/wiringPi/wiringSerial.h @@ -3,7 +3,7 @@ * Handle a serial port *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPi/wiringShift.c b/wiringPi/wiringShift.c index 3df94e8..d0f0b18 100644 --- a/wiringPi/wiringShift.c +++ b/wiringPi/wiringShift.c @@ -5,7 +5,7 @@ * Copyright (c) 2009-2012 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPi/wiringShift.h b/wiringPi/wiringShift.h index 419ade4..919c4e4 100644 --- a/wiringPi/wiringShift.h +++ b/wiringPi/wiringShift.h @@ -5,7 +5,7 @@ * Copyright (c) 2009-2012 Gordon Henderson. *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPi/wpiExtensions.c b/wiringPi/wpiExtensions.c index bef126f..8668806 100644 --- a/wiringPi/wpiExtensions.c +++ b/wiringPi/wpiExtensions.c @@ -7,7 +7,7 @@ * Copyright (c) 2012-2015 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPi/wpiExtensions.h b/wiringPi/wpiExtensions.h index fcaec96..9d0b41c 100644 --- a/wiringPi/wpiExtensions.h +++ b/wiringPi/wpiExtensions.h @@ -5,7 +5,7 @@ * Copyright (c) 2012-2015 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPiD/Makefile b/wiringPiD/Makefile index e050207..d7ebec8 100644 --- a/wiringPiD/Makefile +++ b/wiringPiD/Makefile @@ -1,7 +1,7 @@ # # Makefile: # The wiringPiD utility: -# https://projects.drogon.net/wiring-pi +# https://github.com/wiringPi/wiringPi # # Copyright (c) 2012-2017 Gordon Henderson ################################################################################# diff --git a/wiringPiD/drcNetCmd.h b/wiringPiD/drcNetCmd.h index c59e0b3..8ee9d0b 100644 --- a/wiringPiD/drcNetCmd.h +++ b/wiringPiD/drcNetCmd.h @@ -3,7 +3,7 @@ * Copyright (c) 2012-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPiD/network.c b/wiringPiD/network.c index 9f6bb88..0c58d3b 100644 --- a/wiringPiD/network.c +++ b/wiringPiD/network.c @@ -4,7 +4,7 @@ * Copyright (c) 2012-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -135,7 +135,7 @@ static int clientPrintf (const int fd, const char *message, ...) int sendGreeting (int clientFd) { - if (clientPrintf (clientFd, "200 Welcome to wiringPiD - http://wiringpi.com/\n") < 0) + if (clientPrintf (clientFd, "200 Welcome to wiringPiD - https://github.com/WiringPi/WiringPi/\n") < 0) return -1 ; return clientPrintf (clientFd, "200 Connecting from: %s\n", getClientIP ()) ; diff --git a/wiringPiD/network.h b/wiringPiD/network.h index 94c3380..3215c12 100644 --- a/wiringPiD/network.h +++ b/wiringPiD/network.h @@ -4,7 +4,7 @@ * Copyright (c) 2012-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPiD/runRemote.c b/wiringPiD/runRemote.c index cd7432b..7c6a5cb 100644 --- a/wiringPiD/runRemote.c +++ b/wiringPiD/runRemote.c @@ -5,7 +5,7 @@ * Copyright (c) 2012-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPiD/runRemote.h b/wiringPiD/runRemote.h index 57d5018..c4ce296 100644 --- a/wiringPiD/runRemote.h +++ b/wiringPiD/runRemote.h @@ -5,7 +5,7 @@ * Copyright (c) 2012-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by diff --git a/wiringPiD/wiringpid.c b/wiringPiD/wiringpid.c index 8dde1cd..235e290 100644 --- a/wiringPiD/wiringpid.c +++ b/wiringPiD/wiringpid.c @@ -3,7 +3,7 @@ * Copyright (c) 2012-2017 Gordon Henderson *********************************************************************** * This file is part of wiringPi: - * https://projects.drogon.net/raspberry-pi/wiringpi/ + * https://github.com/WiringPi/WiringPi/ * * wiringPi is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by