Comments (2)
Hmm, this is an interesting one. The debate here is, is the GPIO0 pin the "first (1st)" pin or the "0th" pin. Looking at my descriptions, I also talk about the 16th bit in a register, which implies I have a 0th bit. Perhaps it's worth a clarifying comment to be explicit about what I mean. Alternatively it could be rewritten to say "pin 16" and "bit position 16" with a note somewhere saying that "pin 0 is the first pin". It may even be a nice opportunity to describe off by one errors 😉
from bakingpi-www.
Yes, definitively! I have a programming background, so I'm somewhat used to count from zero, but I guess it can be difficult for newcommers.
I like the idea to use different naming "pin 16" vs. "bit position 16" (although this still is ambigous if there was no prior notice whether there is also a 0th bit/pin). Maybe this can be underlined with an indicator (color, symbol, etc.) to always make clear which counting method is used and a box explaining the meaning of the indicators.
It could be quite useful to explain the off-by-one error, e.g. in the troubleshooting section.
from bakingpi-www.
Related Issues (20)
- OK01 Section 2 and template.tar.gz
- Makefile "clean" completely removes build/ subdirectory rather than content
- OK02 working on Raspberry Pi 2 B (with changes needed) HOT 14
- OK04 Text Typo line 39
- ok04_extension example code
- lesson 8: screen 03 on Raspberry Pi 2 HOT 3
- ok04 - wait method implementation missing the method declaration
- Which toolchain to use for Raspberry Pi 2 Model 2
- Framebuffer text approach
- GPIO Address different from the datasheet HOT 2
- Newer Pi Linux doesn't do ATAGS by default (cmdline example)
- I could not make the screen01 work on my Raspberry Pi 2B, help HOT 1
- Add information for 3B+ Model HOT 2
- C++ ( or C ) HOT 1
- Make is not a command HOT 1
- Raspberry Pi3b+ HOT 3
- OK04 Questions
- screen01 Questions HOT 1
- kernel not booting
- OK01 odd behavior HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bakingpi-www.