Comments (5)
Absolutely documentation very much welcome... this was just thrown together by me for my own testing and figured it might help someone ;-0
certainly some in source comments are useful and/or tidying up of code. Also maybe a README.adoc (@aallan can make suggestions about what he prefers)
from pico-examples.
Hey there! Yes, absolutely we'd love documentation PRs. If you take a look in the pico-examples
repo you'll find that some of the directories have a README.adoc
,
$ find . -name "README.adoc" -print
./i2c/lcd_1602_i2c/README.adoc
./i2c/mpu6050_i2c/README.adoc
./spi/bme280_spi/README.adoc
./spi/mpu9250_spi/README.adoc
./gpio/dht_sensor/README.adoc
./gpio/hello_7segment/README.adoc
$
These README.adoc
files are the preferred method for documenting example code. If we take a look at the gpio/dht_sensor/
directory,
$ ls
total 1576
drwxr-xr-x 8 aa staff 256B 20 Jan 23:41 ./
drwxr-xr-x 6 aa staff 192B 20 Jan 23:41 ../
-rw-r--r-- 1 aa staff 175B 20 Jan 23:41 CMakeLists.txt
-rw-r--r-- 1 aa staff 2.1K 20 Jan 23:41 README.adoc
-rw-r--r-- 1 aa staff 2.1K 20 Jan 23:41 dht.c
-rw-r--r-- 1 aa staff 59K 20 Jan 23:41 pi-and-pico-uart-and-dht-sensor.fzz
-rw-r--r-- 1 aa staff 303K 20 Jan 23:41 pi-and-pico-uart-and-dht-sensor.png
-rw-r--r-- 1 aa staff 409K 20 Jan 23:41 serial-output.png
$
as well as the example code and CMake infrastructure you'll see a README.adoc
file and accompany Fritzing and PNG files.
These asciidoc files will render when looking at the code example here in Github but will also get (automagically) imported into the PDF documentation, see "Appendix A: App Notes" in the C/C++ SDK book, along with the example code.
The dht_sensor/README.adoc
is probably the best template example to copy. You can find the Fritzing part for Pico here so that you can create a wiring diagram.
from pico-examples.
even without the fritzing, the documentation of how it works is invaluable!
from pico-examples.
even without the fritzing, the documentation of how it works is invaluable!
Oh, agreed!
from pico-examples.
I know that I won't be able to get to this. I will close this now.
from pico-examples.
Related Issues (20)
- Include some description about RGBW vs RGB in ws2812 example
- Question about the LCD_1602_i2c HOT 1
- [Question] Basic gatt ble server on Pico W HOT 3
- LCD1602_I2C Example does not work HOT 26
- PicoW Peripheral Secure Connection HOT 7
- Make sure there's an example of using stdio_set_chars_available_callback HOT 2
- Flashing pico fails HOT 4
- Add example of using TinyUSB CDC with extra stdio_usb iface
- Modify the pio uart examples to use DMA HOT 1
- ping examples hardcode an IP address
- Recommended launch.json is slow to connect due to no "adapter speed" setting
- No key press detected for pending in [iperf server] example HOT 1
- stdio_usb input available callback can't call other stdio functions, and pico-examples iperf assumes it can. HOT 3
- UART RX Garbage data recived HOT 5
- Pico-W to Pico-W STALL while sending UDP HOT 2
- Bug in BME280 SPI example when reading compensation parameters for humidity HOT 3
- Out-of-Memory Errors When Publishing MQTT Messages HOT 1
- host_cdc_msc_hid: incorrect len parameter in tuh_hid_report_received_cb HOT 1
- Bug in pio/uart_rx /uart_rx_intr.c HOT 6
- ir_nec variable length commands HOT 8
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 pico-examples.