commit
This commit is contained in:
parent
459c521146
commit
3e4a1691b0
21 changed files with 15139 additions and 14865 deletions
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
|
@ -35,5 +35,10 @@
|
|||
"raspberry-pi-pico.cmakeAutoConfigure": true,
|
||||
"raspberry-pi-pico.useCmakeTools": false,
|
||||
"raspberry-pi-pico.cmakePath": "${HOME}/.pico-sdk/cmake/v3.28.6/bin/cmake",
|
||||
"raspberry-pi-pico.ninjaPath": "${HOME}/.pico-sdk/ninja/v1.12.1/ninja"
|
||||
"raspberry-pi-pico.ninjaPath": "${HOME}/.pico-sdk/ninja/v1.12.1/ninja",
|
||||
"files.associations": {
|
||||
"stdio.h": "c",
|
||||
"stdlib.h": "c",
|
||||
"pwm.h": "c"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ pico_sdk_init()
|
|||
|
||||
# Add executable. Default name is the project name, version 0.1
|
||||
|
||||
add_executable(dht11 dht11.c )
|
||||
add_executable(dht11 dht11.c display.c)
|
||||
|
||||
pico_set_program_name(dht11 "dht11")
|
||||
pico_set_program_version(dht11 "0.1")
|
||||
|
@ -68,9 +68,8 @@ target_include_directories(dht11 PRIVATE
|
|||
)
|
||||
|
||||
# Add any user requested libraries
|
||||
#target_link_libraries(dht11
|
||||
# hardware_timer hardware_irq
|
||||
# )
|
||||
target_link_libraries(dht11
|
||||
hardware_pwm)
|
||||
|
||||
pico_add_extra_outputs(dht11)
|
||||
|
||||
|
|
17
README.md
17
README.md
|
@ -1,5 +1,18 @@
|
|||
here is my sweating to get dht11 to work on a rpi pico
|
||||
|
||||
it works but if you were to do this you must know things I learned the hard way:
|
||||
it reads something but not sure if correct
|
||||
|
||||
if you were to do this you must know things I learned the hard way:
|
||||
- don't print values live it will mess up with timing and it won't work at all
|
||||
- initialize the pin as output then when it's time to read make it input, pull up and down doesn't work like output
|
||||
- initialize the pin as output then when it's time to read make it input, pull up and down doesn't work like output
|
||||
|
||||
you can also connect a 7 segment display and it will display the first digit of humidity value (percentage or something), because I only have one 7 segment display
|
||||
|
||||
that's pointless you might say... well the display has a decimal point
|
||||
|
||||
then you will say that has no purpose... but you will proceed to try it out and you will notice the cool animations and patterns and you will change your mind (there animation refers to fade between patterns and the patterns are digits, a dot before first read and a minus on error)
|
||||
|
||||
you can disable the display module for placebo more performance and 1kb lighter binary:
|
||||
1. rename `stub_display.c` to `display.c`
|
||||
2. recompile and done
|
||||
3. if you're feeling adventurous delete relevant lines in the program
|
|
@ -1322,7 +1322,7 @@
|
|||
{
|
||||
"directoryIndex" : 0,
|
||||
"id" : "dht11::@6890427a1f51a3e7e1df",
|
||||
"jsonFile" : "target-dht11-Debug-67cb606ec4b16e8bdc2b.json",
|
||||
"jsonFile" : "target-dht11-Debug-d73b8083c00b1582d228.json",
|
||||
"name" : "dht11",
|
||||
"projectIndex" : 0
|
||||
}
|
|
@ -26,7 +26,7 @@
|
|||
"objects" :
|
||||
[
|
||||
{
|
||||
"jsonFile" : "codemodel-v2-994159bccc05e3e03154.json",
|
||||
"jsonFile" : "codemodel-v2-75742b4e66c8e8b05cfa.json",
|
||||
"kind" : "codemodel",
|
||||
"version" :
|
||||
{
|
||||
|
@ -99,7 +99,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"jsonFile" : "codemodel-v2-994159bccc05e3e03154.json",
|
||||
"jsonFile" : "codemodel-v2-75742b4e66c8e8b05cfa.json",
|
||||
"kind" : "codemodel",
|
||||
"version" :
|
||||
{
|
|
@ -44,7 +44,7 @@
|
|||
{
|
||||
"command" : 3,
|
||||
"file" : 0,
|
||||
"line" : 75,
|
||||
"line" : 74,
|
||||
"parent" : 0
|
||||
},
|
||||
{
|
||||
|
@ -121,6 +121,12 @@
|
|||
"file" : 0,
|
||||
"line" : 65,
|
||||
"parent" : 0
|
||||
},
|
||||
{
|
||||
"command" : 4,
|
||||
"file" : 0,
|
||||
"line" : 71,
|
||||
"parent" : 0
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -662,6 +668,11 @@
|
|||
"backtrace" : 5,
|
||||
"isSystem" : true,
|
||||
"path" : "/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/include"
|
||||
},
|
||||
{
|
||||
"backtrace" : 16,
|
||||
"isSystem" : true,
|
||||
"path" : "/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_pwm/include"
|
||||
}
|
||||
],
|
||||
"language" : "C",
|
||||
|
@ -684,7 +695,7 @@
|
|||
6,
|
||||
7,
|
||||
8,
|
||||
10,
|
||||
9,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
|
@ -701,22 +712,22 @@
|
|||
24,
|
||||
25,
|
||||
26,
|
||||
28,
|
||||
27,
|
||||
29,
|
||||
30,
|
||||
31,
|
||||
33,
|
||||
32,
|
||||
34,
|
||||
35,
|
||||
38,
|
||||
36,
|
||||
39,
|
||||
43,
|
||||
40,
|
||||
44,
|
||||
46,
|
||||
48,
|
||||
50,
|
||||
45,
|
||||
47,
|
||||
49,
|
||||
51,
|
||||
53,
|
||||
52,
|
||||
54,
|
||||
55,
|
||||
56,
|
||||
|
@ -742,7 +753,8 @@
|
|||
76,
|
||||
77,
|
||||
78,
|
||||
79
|
||||
79,
|
||||
80
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -1281,22 +1293,27 @@
|
|||
"backtrace" : 5,
|
||||
"isSystem" : true,
|
||||
"path" : "/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/include"
|
||||
},
|
||||
{
|
||||
"backtrace" : 16,
|
||||
"isSystem" : true,
|
||||
"path" : "/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_pwm/include"
|
||||
}
|
||||
],
|
||||
"language" : "ASM",
|
||||
"sourceIndexes" :
|
||||
[
|
||||
9,
|
||||
27,
|
||||
32,
|
||||
36,
|
||||
10,
|
||||
28,
|
||||
33,
|
||||
37,
|
||||
40,
|
||||
38,
|
||||
41,
|
||||
42,
|
||||
45,
|
||||
47,
|
||||
52
|
||||
43,
|
||||
46,
|
||||
48,
|
||||
53
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -1851,6 +1868,11 @@
|
|||
"backtrace" : 5,
|
||||
"isSystem" : true,
|
||||
"path" : "/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/include"
|
||||
},
|
||||
{
|
||||
"backtrace" : 16,
|
||||
"isSystem" : true,
|
||||
"path" : "/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_pwm/include"
|
||||
}
|
||||
],
|
||||
"language" : "CXX",
|
||||
|
@ -1864,7 +1886,7 @@
|
|||
},
|
||||
"sourceIndexes" :
|
||||
[
|
||||
49
|
||||
50
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -2743,7 +2765,7 @@
|
|||
6,
|
||||
7,
|
||||
8,
|
||||
10,
|
||||
9,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
|
@ -2760,23 +2782,23 @@
|
|||
24,
|
||||
25,
|
||||
26,
|
||||
28,
|
||||
27,
|
||||
29,
|
||||
30,
|
||||
31,
|
||||
33,
|
||||
32,
|
||||
34,
|
||||
35,
|
||||
38,
|
||||
36,
|
||||
39,
|
||||
43,
|
||||
40,
|
||||
44,
|
||||
46,
|
||||
48,
|
||||
45,
|
||||
47,
|
||||
49,
|
||||
50,
|
||||
51,
|
||||
53,
|
||||
52,
|
||||
54,
|
||||
55,
|
||||
56,
|
||||
|
@ -2802,24 +2824,25 @@
|
|||
76,
|
||||
77,
|
||||
78,
|
||||
79
|
||||
79,
|
||||
80
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "",
|
||||
"sourceIndexes" :
|
||||
[
|
||||
9,
|
||||
27,
|
||||
32,
|
||||
36,
|
||||
10,
|
||||
28,
|
||||
33,
|
||||
37,
|
||||
40,
|
||||
38,
|
||||
41,
|
||||
42,
|
||||
45,
|
||||
47,
|
||||
52
|
||||
43,
|
||||
46,
|
||||
48,
|
||||
53
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -2831,6 +2854,12 @@
|
|||
"path" : "dht11.c",
|
||||
"sourceGroupIndex" : 0
|
||||
},
|
||||
{
|
||||
"backtrace" : 1,
|
||||
"compileGroupIndex" : 0,
|
||||
"path" : "display.c",
|
||||
"sourceGroupIndex" : 0
|
||||
},
|
||||
{
|
||||
"backtrace" : 5,
|
||||
"compileGroupIndex" : 0,
|
Binary file not shown.
252
build/.ninja_log
252
build/.ninja_log
|
@ -1,170 +1,90 @@
|
|||
# ninja log v6
|
||||
52 121 1723379060386658861 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_time/timeout_helper.c.obj c548b094e0de4c9b
|
||||
261 424 1723379060593329366 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio/stdio.c.obj ea87374fd1ebe1de
|
||||
154 224 1723379060486660716 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime/runtime.c.obj 9ff2c58496dd7ebf
|
||||
150 189 1723379060483327322 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_divider/divider.S.obj aeceb435611d73f1
|
||||
236 265 1723379060569995597 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_mem_ops/mem_ops_aeabi.S.obj 1c1149358a167f9d
|
||||
80 194 1723379060413326021 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_uart/uart.c.obj b47736b0fb9c311e
|
||||
55 182 1723379060389992254 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_timer/timer.c.obj 42eb24db5e6ef58d
|
||||
380 435 1723379060713331594 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/dfu/dfu_rt_device.c.obj f054aafc536008da
|
||||
9 158 1723379060343324723 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_irq/irq.c.obj 7d62f60f8b38dce2
|
||||
9 46 1723379060343324723 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_irq/irq_handler_chain.S.obj 9b31114dda7021f1
|
||||
437 557 1723379060769999312 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/vendor/vendor_device.c.obj 795dae7a05c0698a
|
||||
9 55 1723379060343324723 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_sync_spin_lock/sync_spin_lock.c.obj 5e58762cde9186ee
|
||||
90 165 1723379060423326207 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_pll/pll.c.obj c214a62a657e83e2
|
||||
3 184 1723379121114453396 build.ninja a6f675a7dc88903b
|
||||
425 477 1723379060759999126 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/net/ecm_rndis_device.c.obj 57cf4e86c7c0c78f
|
||||
85 218 1723379060419992813 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_clocks/clocks.c.obj 9497a81d8fa57929
|
||||
416 468 1723379060749998943 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/midi/midi_device.c.obj 882c1deffbd94eea
|
||||
214 437 1723379060546661832 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_math.c.obj ae9a443e1af49a28
|
||||
286 369 1723379060619996527 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_usb/stdio_usb_descriptors.c.obj 332f13d51c7a99e1
|
||||
412 465 1723379060743332152 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/hid/hid_device.c.obj 40700d6207a4b534
|
||||
46 255 1723379060379992069 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_time/time.c.obj 2d5580b5dd909530
|
||||
58 174 1723379060389992254 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_util/datetime.c.obj 36de5f1a9f0c0fcb
|
||||
365 488 1723379060696664616 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/device/usbd_control.c.obj 6baecea7cfbe5450
|
||||
308 442 1723379060639996899 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/portable/raspberrypi/rp2040/rp2040_usb.c.obj 66f56ad04ac7152a
|
||||
2 12 1723293085920163353 pico-sdk/src/rp2040/boot_stage2/CMakeFiles/bs2_default.dir/compile_time_choice.S.obj 6d3bb43c505b2d40
|
||||
5 52 1723379060336657932 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2040/pico_platform/platform.c.obj f6789fbd04b69a48
|
||||
4 113 1723379060336657932 CMakeFiles/dht11.dir/dht11.c.obj 8bbb11caab2cc32
|
||||
225 280 1723379060559995411 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_init_rom_rp2040.c.obj 53338a29c928a27a
|
||||
15 70 1723379060346658117 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/lock_core.c.obj 8d1dcefdf4b47ea3
|
||||
179 208 1723379060513327880 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_bit_ops/bit_ops_aeabi.S.obj e7903ae245af868c
|
||||
287 336 1723379060619996527 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_unique_id/unique_id.c.obj 496de571c8bcef78
|
||||
419 468 1723379060753332337 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/msc/msc_device.c.obj 12f5a0cb745247b5
|
||||
175 251 1723379060506661088 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime_init/runtime_init_stack_guard.c.obj c71006c1cd76c5b
|
||||
430 490 1723379060763332523 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/net/ncm_device.c.obj 8a626af807df482a
|
||||
372 542 1723379060706664802 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/cdc/cdc_device.c.obj 10bb9e21cae7406c
|
||||
265 374 1723379060599996155 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_usb/reset_interface.c.obj caa3e09914820704
|
||||
465 577 1723379060799999869 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/tusb.c.obj 9cb8ed9846936e34
|
||||
224 259 1723379060556662018 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_aeabi_rp2040.S.obj 7450bcc6897e402b
|
||||
283 484 1723379060616663132 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_usb/stdio_usb.c.obj c100ab5666edcf3f
|
||||
113 214 1723379060446659975 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_watchdog/watchdog.c.obj c5e8ab94853a2ef7
|
||||
289 379 1723379060623329921 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_flash/flash.c.obj d1d74e5d4ec8b848
|
||||
191 225 1723379060523328065 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_divider/divider_hardware.S.obj c2c06f0716138c70
|
||||
257 490 1723379060589995969 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_printf/printf.c.obj 58edb6e209afa59f
|
||||
228 430 1723379060559995411 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_math.c.obj 41e9288cfd9dcbb5
|
||||
375 412 1723379060709998199 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/dfu/dfu_device.c.obj 71743be8f756dd20
|
||||
121 178 1723379060453326764 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_ticks/ticks.c.obj 67e5b4607c726383
|
||||
255 365 1723379060589995969 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_cxx_options/new_delete.cpp.obj fcca0caec2fd8aa1
|
||||
289 404 1723392209771420085 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio/stdio.c.obj 22083c38ff0bee76
|
||||
467 516 1723392209948089976 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/net/ecm_rndis_device.c.obj 845c2c25439cc039
|
||||
106 229 1723392209588083403 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_clocks/clocks.c.obj 82e0655163b9787f
|
||||
202 259 1723392209681418439 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_bootrom/bootrom.c.obj ce32626615309d24
|
||||
413 475 1723392209894755670 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/audio/audio_device.c.obj 3187aab112654e08
|
||||
206 261 1723392209684751835 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_bootrom/bootrom_lock.c.obj 7f284cee6c88bc42
|
||||
222 482 1723392209701418804 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_math.c.obj ac34f3dba30ced74
|
||||
436 511 1723392209918089428 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/midi/midi_device.c.obj 92c185dd093c77ab
|
||||
119 205 1723392209598083585 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_vreg/vreg.c.obj abdf7d4bf29db2f5
|
||||
221 299 1723392209701418804 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_init_rom_rp2040.c.obj 3148eda9e80ea880
|
||||
260 322 1723392209741419537 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_malloc/malloc.c.obj f136bb1c2b0e6fa3
|
||||
511 584 1723392209991424100 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/rp2040_usb_device_enumeration.c.obj 5442c01c265c5ac2
|
||||
56 162 1723392209534749093 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_util/datetime.c.obj 7b351ece472e1537
|
||||
45 255 1723392209524748910 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_time/time.c.obj 91d8a1ec2189bfa5
|
||||
21 22 1723293085940163907 pico-sdk/src/rp2040/boot_stage2/bs2_default.bin 95905d65a9bb8c30
|
||||
209 287 1723379060543328437 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_init_rom_rp2040.c.obj 335ff0de0f04b5bb
|
||||
231 308 1723379060563328809 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_malloc/malloc.c.obj d03b5cb39b41e0e5
|
||||
96 154 1723379060429992999 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_vreg/vreg.c.obj 891f4b58f2474800
|
||||
468 541 1723379060799999869 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/rp2040_usb_device_enumeration.c.obj 86454eac7d7fcc91
|
||||
327 545 1723392209808087421 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/portable/raspberrypi/rp2040/dcd_rp2040.c.obj f4663ed5d93789b
|
||||
7 183 1723392209488081574 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_gpio/gpio.c.obj 961d7e5da599b2b0
|
||||
270 320 1723392209751419719 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_standard_binary_info/standard_binary_info.c.obj f953f76384ed33f4
|
||||
238 314 1723392209718085775 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_init_rom_rp2040.c.obj 1fff923c20245d88
|
||||
7 49 1723392209488081574 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2040/pico_platform/platform.c.obj 87afde9ce3157afc
|
||||
6 119 1723392209484748182 CMakeFiles/dht11.dir/dht11.c.obj 9919f3a41d44da72
|
||||
226 289 1723392209708085592 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_v1_rom_shim_rp2040.S.obj 7bfe074f2a8792e
|
||||
183 279 1723392209664751470 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime_init/runtime_init_clocks.c.obj 52ab3dbbb119a20e
|
||||
53 193 1723392209534749093 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_timer/timer.c.obj d1ff65044211e544
|
||||
10 45 1723392209491414969 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_irq/irq_handler_chain.S.obj c432a47541e47218
|
||||
431 488 1723392209911422641 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/dfu/dfu_rt_device.c.obj 7ad4bc46d92d3fb6
|
||||
10 216 1723392209491414969 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_irq/irq.c.obj bab8fd358eadc3a3
|
||||
230 270 1723392209711418988 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_int64_ops/pico_int64_ops_aeabi.S.obj e5ab47304d313991
|
||||
193 242 1723392209674751652 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime_init/runtime_init_stack_guard.c.obj bbde0a62d2701c6a
|
||||
417 563 1723392209898089062 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/cdc/cdc_device.c.obj 7b50161f7362a46b
|
||||
476 544 1723392209958090159 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/net/ncm_device.c.obj 34a3ef88c386c81b
|
||||
6 38 1723392209488081574 CMakeFiles/dht11.dir/display.c.obj ee5be5e091cd7b50
|
||||
7 55 1723392209488081574 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_sync/sync.c.obj af24f7b1c847b051
|
||||
482 530 1723392209961423555 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/usbtmc/usbtmc_device.c.obj c21cb71e2545013f
|
||||
7 70 1723392209488081574 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_platform_panic/panic.c.obj 2b736490667742d8
|
||||
71 180 1723392209551416067 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_util/pheap.c.obj a99372ab12c83249
|
||||
283 326 1723392209764753294 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_crt0/crt0.S.obj 8c27c36b10c4f5f8
|
||||
50 114 1723392209531415701 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_time/timeout_helper.c.obj 47c5d6f23a57ee56
|
||||
38 123 1723392209518082123 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/critical_section.c.obj a5735dfd326c5851
|
||||
423 487 1723392209904755853 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/dfu/dfu_device.c.obj 8a38087c8ab36447
|
||||
78 196 1723392209558082853 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_util/queue.c.obj fc938502936bed04
|
||||
435 467 1723392209914756033 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/hid/hid_device.c.obj 153783d27c8d22b5
|
||||
617 735 1723392210098092715 dht11.elf 67d9b35337078aa1
|
||||
21 174 1723392209501415152 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/mutex.c.obj 306775c7d53bd30f
|
||||
175 235 1723392209654751287 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime/runtime.c.obj 7f07bd0c082b5f15
|
||||
169 213 1723392209651417891 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_divider/divider.S.obj 148ec764a1da577f
|
||||
261 304 1723392209741419537 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_mem_ops/mem_ops_aeabi.S.obj 9faf19d5846afc3
|
||||
83 169 1723392209564749641 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_uart/uart.c.obj 84dcbbb31249620
|
||||
465 533 1723392209944756581 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/msc/msc_device.c.obj 25ecda985de927f1
|
||||
268 345 1723392209748086323 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_cxx_options/new_delete.cpp.obj 7be2b85ad3a45fea
|
||||
12 21 1723293085930163632 pico-sdk/src/rp2040/boot_stage2/bs2_default.elf a8117b14cf352eb4
|
||||
336 582 1723379060669997456 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/device/usbd.c.obj 99a30834f76658f4
|
||||
189 236 1723379060523328065 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_boot_lock/boot_lock.c.obj 52e07b4bdd1f2002
|
||||
5 85 1723379060339991325 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_platform_panic/panic.c.obj 37ce49553b09b851
|
||||
258 289 1723379060593329366 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_crt0/crt0.S.obj 50b0d08b41da7822
|
||||
436 474 1723379060769999312 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/usbtmc/usbtmc_device.c.obj 5bcd53d0c0f79613
|
||||
70 185 1723379060403325837 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_util/pheap.c.obj e24e7e3a5d931f4e
|
||||
6 58 1723379060339991325 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_sync/sync.c.obj 37c3b55227773d11
|
||||
263 384 1723294645257984473 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_uart/stdio_uart.c.obj ac3ca2b536713bac
|
||||
79 191 1723379060413326021 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_util/queue.c.obj c34ab073fb356b58
|
||||
5 150 1723379060336657932 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_gpio/gpio.c.obj 87498b9d53a70f4
|
||||
297 496 1723379060629996713 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/portable/raspberrypi/rp2040/dcd_rp2040.c.obj 80d69d4cbafedfd
|
||||
256 296 1723379060589995969 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_standard_binary_info/standard_binary_info.c.obj 42bc080b8c978978
|
||||
369 419 1723379060703331408 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/audio/audio_device.c.obj 728e97ec977e0422
|
||||
185 231 1723379060516661274 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_bootrom/bootrom_lock.c.obj 52afeb4758e92f6f
|
||||
182 286 1723379060516661274 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_bootrom/bootrom.c.obj 296cbef1ab80738b
|
||||
23 43 1723293085956831034 /home/user/Documents/pico/dht11/build/pico-sdk/src/rp2040/boot_stage2/bs2_default_padded_checksummed.S 318a2738173b0ef
|
||||
142 221 1723379060476660533 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_xosc/xosc.c.obj d2f1154f5b3356d
|
||||
588 675 1723379060920002100 dht11.elf dd36328dc38ecd52
|
||||
16 141 1723379060349991511 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/mutex.c.obj c9c62f2ad8b21f68
|
||||
221 256 1723379060553328623 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_int64_ops/pico_int64_ops_aeabi.S.obj 561553e6e2e6451
|
||||
165 227 1723379060499994299 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime_init/runtime_init_clocks.c.obj e884a8400c1b4696
|
||||
218 258 1723379060549995226 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_v1_rom_shim_rp2040.S.obj 5477ee432a23d3e0
|
||||
14 96 1723379060346658117 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/sem.c.obj 6139081c0f60e068
|
||||
158 261 1723379060489994113 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime_init/runtime_init.c.obj 72409e248194ca0f
|
||||
23 43 1723293085956831034 pico-sdk/src/rp2040/boot_stage2/bs2_default_padded_checksummed.S 318a2738173b0ef
|
||||
251 416 1723379060583329180 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_atomic/atomic.c.obj 7b5557789121554b
|
||||
5 79 1723379060339991325 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/hardware_claim/claim.c.obj fe32de7595283650
|
||||
194 229 1723379060526661459 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_aeabi_rp2040.S.obj 8595a31d33f8c79f
|
||||
144 209 1723392209624750738 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_ticks/ticks.c.obj 16b88d776aefc808
|
||||
216 267 1723392209698085410 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_aeabi_rp2040.S.obj fe4c2fe84617579f
|
||||
21 22 1723293085940163907 /home/user/Documents/pico/dht11/build/pico-sdk/src/rp2040/boot_stage2/bs2_default.bin 95905d65a9bb8c30
|
||||
229 257 1723379060563328809 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_v1_rom_shim_rp2040.S.obj fbe64390d7bbc20d
|
||||
442 484 1723379060776666104 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/video/video_device.c.obj 860eab2625e4c474
|
||||
16 80 1723379060349991511 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/critical_section.c.obj 3767bbd4e79a11db
|
||||
468 588 1723379060799999869 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/common/tusb_fifo.c.obj 858953470bb5e659
|
||||
5 90 1723379060336657932 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdlib/stdlib.c.obj 3f24794bc3bb7cc0
|
||||
259 372 1723379060593329366 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_clib_interface/newlib_interface.c.obj ebfafdf4bc305f07
|
||||
3 198 1723379121114453396 build.ninja a6f675a7dc88903b
|
||||
14 61 1723379121164454324 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_irq/irq_handler_chain.S.obj ad73b291b22e534b
|
||||
10 65 1723379121161120929 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/hardware_claim/claim.c.obj 7b0fc0999cd5a30d
|
||||
11 66 1723379121161120929 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_sync/sync.c.obj f79a0177752efcc1
|
||||
9 72 1723379121157787534 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdlib/stdlib.c.obj 917d46c5ea039c23
|
||||
10 74 1723379121161120929 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2040/pico_platform/platform.c.obj 390f156f456798bf
|
||||
29 77 1723379121181121301 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/critical_section.c.obj 2d96c20457b75cd9
|
||||
10 81 1723379121161120929 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_platform_panic/panic.c.obj f8f3ed0cfb09054b
|
||||
12 91 1723379121161120929 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_sync_spin_lock/sync_spin_lock.c.obj 8afd23129daac393
|
||||
19 104 1723379121171121115 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/lock_core.c.obj ce3342086d7aa389
|
||||
8 106 1723379121157787534 CMakeFiles/dht11.dir/dht11.c.obj cd0af01aabee9851
|
||||
65 123 1723379121214455253 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_time/timeout_helper.c.obj ed39a14cca3a1975
|
||||
9 127 1723379121161120929 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_gpio/gpio.c.obj 83d15043ed4d6082
|
||||
12 137 1723379121161120929 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_irq/irq.c.obj ce4b31fbd1c5ae67
|
||||
26 148 1723379121177787906 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/mutex.c.obj 35a1d7d2e2ab164d
|
||||
106 155 1723379121257789390 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_vreg/vreg.c.obj 17c59956beeff7cd
|
||||
16 160 1723379121167787720 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/sem.c.obj b4093963d207775d
|
||||
104 162 1723379121254455996 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_pll/pll.c.obj 7e8ae8a934bb8e7f
|
||||
72 176 1723379121224455439 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_util/datetime.c.obj ef0da2fd64f63915
|
||||
81 179 1723379121231122230 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_uart/uart.c.obj a86d6e4de036ce9f
|
||||
149 181 1723379121297790134 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_divider/divider.S.obj fb997221e838f936
|
||||
77 183 1723379121227788833 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_util/queue.c.obj 4a964d4227761a6c
|
||||
138 186 1723379121287789948 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_xosc/xosc.c.obj b151406e4d388161
|
||||
127 188 1723379121277789762 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_ticks/ticks.c.obj d5b7a16b7f6b3afe
|
||||
188 210 1723379121337790877 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_divider/divider_hardware.S.obj efc4b138dcd7428f
|
||||
66 215 1723379121217788647 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_timer/timer.c.obj 7c700c516e034b77
|
||||
74 216 1723379121224455439 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_util/pheap.c.obj af60eee1eb6c400c
|
||||
155 220 1723379121304456925 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime/runtime.c.obj f3766a628e06f19e
|
||||
160 220 1723379121311123714 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime_init/runtime_init.c.obj c92765f74e6d8643
|
||||
179 225 1723379121331124086 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_bit_ops/bit_ops_aeabi.S.obj 69c79a1592f9a23f
|
||||
91 226 1723379121241122416 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_clocks/clocks.c.obj 678546529cf2a029
|
||||
162 227 1723379121311123714 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime_init/runtime_init_clocks.c.obj 9930995bb5dd182d
|
||||
123 235 1723379121274456368 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_watchdog/watchdog.c.obj 29fd74ff95b8a93e
|
||||
183 236 1723379121334457483 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_bootrom/bootrom_lock.c.obj db280325e86290f2
|
||||
186 238 1723379121337790877 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_boot_lock/boot_lock.c.obj 3fa097c71ae0b954
|
||||
176 243 1723379121327790691 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime_init/runtime_init_stack_guard.c.obj eb3c14e3b2f48d08
|
||||
210 246 1723379121361124644 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_aeabi_rp2040.S.obj 13cf561d0ace259c
|
||||
220 250 1723379121371124829 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_int64_ops/pico_int64_ops_aeabi.S.obj eac9205fa3156e91
|
||||
220 252 1723379121371124829 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_v1_rom_shim_rp2040.S.obj a23c2be1351615f4
|
||||
225 261 1723379121374458224 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_aeabi_rp2040.S.obj 75087827678f9fd3
|
||||
235 263 1723379121384458410 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_v1_rom_shim_rp2040.S.obj 724e37a2593b8ba7
|
||||
182 265 1723379121331124086 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_bootrom/bootrom.c.obj a6613b68f55789c6
|
||||
238 273 1723379121387791806 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_mem_ops/mem_ops_aeabi.S.obj e838373580d06a3d
|
||||
215 283 1723379121364458038 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_init_rom_rp2040.c.obj c10b48918ca94621
|
||||
226 295 1723379121377791620 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_init_rom_rp2040.c.obj 698da1e9e525250c
|
||||
61 299 1723379121211121858 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_time/time.c.obj 292097b65b327eba
|
||||
250 306 1723379121401125387 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_standard_binary_info/standard_binary_info.c.obj c68ece2877d5005f
|
||||
261 315 1723379121411125573 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_crt0/crt0.S.obj 28c4ed1665cff99a
|
||||
237 319 1723379121387791806 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_malloc/malloc.c.obj a26df91949adeaf3
|
||||
246 329 1723379121397791992 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_cxx_options/new_delete.cpp.obj 33f878dc07102c8f
|
||||
263 366 1723379121414458967 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_clib_interface/newlib_interface.c.obj b0735512698b525b
|
||||
300 372 1723379121451126316 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_unique_id/unique_id.c.obj a4c9d433b4d8979d
|
||||
243 384 1723379121394458595 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_atomic/atomic.c.obj 7f492637bdefbaa1
|
||||
265 390 1723379121414458967 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio/stdio.c.obj 64c7ba63cd0d7233
|
||||
273 398 1723379121424459153 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_usb/reset_interface.c.obj 66683faef03daac1
|
||||
295 412 1723379121444459525 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_usb/stdio_usb_descriptors.c.obj 5c89a1c76d6e4fda
|
||||
372 421 1723379121521127615 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/audio/audio_device.c.obj e31e9e3b5c0929ae
|
||||
390 446 1723379121541127986 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/dfu/dfu_device.c.obj 40f72fea6b2a79cb
|
||||
283 449 1723379121434459339 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_usb/stdio_usb.c.obj 1049977bfce9457
|
||||
306 453 1723379121457793105 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_flash/flash.c.obj 5817d52b502706cf
|
||||
398 459 1723379121547794778 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/dfu/dfu_rt_device.c.obj 55cc07e0b3dfe295
|
||||
227 463 1723379121377791620 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_math.c.obj c573752edda00143
|
||||
319 467 1723379121471126687 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/portable/raspberrypi/rp2040/rp2040_usb.c.obj 6739364663d66514
|
||||
216 474 1723379121367791435 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_double/double_math.c.obj 8bd5036d01510b8c
|
||||
421 475 1723379121571128544 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/midi/midi_device.c.obj 6643b458d7847caa
|
||||
252 477 1723379121401125387 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_printf/printf.c.obj a72847a49cd0f023
|
||||
315 483 1723379121464459896 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/portable/raspberrypi/rp2040/dcd_rp2040.c.obj daa420e224a5054c
|
||||
413 483 1723379121564461753 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/hid/hid_device.c.obj 1c4c0dad28a1c199
|
||||
366 486 1723379121514460825 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/device/usbd_control.c.obj 99b9895a80afa31e
|
||||
450 493 1723379121601129101 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/net/ecm_rndis_device.c.obj 81bb70d2398b465c
|
||||
453 494 1723379121604462496 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/net/ncm_device.c.obj ce5c7fea70973f65
|
||||
459 499 1723379121611129287 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/usbtmc/usbtmc_device.c.obj d2892a4de861491e
|
||||
446 502 1723379121597795707 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/msc/msc_device.c.obj 596d6a231ba1052b
|
||||
467 503 1723379121617796078 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/video/video_device.c.obj 16c1dd992d74870c
|
||||
384 532 1723379121534461197 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/cdc/cdc_device.c.obj 2bdbfc5d374b7d09
|
||||
477 544 1723379121627796262 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/rp2040_usb_device_enumeration.c.obj 40f6e84a28bb2e29
|
||||
463 554 1723379121614462682 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/vendor/vendor_device.c.obj 3ea80a07eb2d078
|
||||
329 566 1723379121477793477 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/device/usbd.c.obj bd9dd877f43f9e6c
|
||||
474 584 1723379121624462868 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/tusb.c.obj a53875a711af8288
|
||||
475 593 1723379121624462868 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/common/tusb_fifo.c.obj 4cb8a0e2ea506d63
|
||||
593 690 1723379121744465097 dht11.elf 574ec9ea5585f484
|
||||
322 430 1723392209804754025 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_flash/flash.c.obj 8b4e92b83dbfb3ec
|
||||
346 502 1723392209828087786 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/portable/raspberrypi/rp2040/rp2040_usb.c.obj 5bc69b06f40ca632
|
||||
2 12 1723293085920163353 pico-sdk/src/rp2040/boot_stage2/CMakeFiles/bs2_default.dir/compile_time_choice.S.obj 6d3bb43c505b2d40
|
||||
488 603 1723392209968090341 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/tusb.c.obj c53d62e7c2f6534f
|
||||
299 422 1723392209781420265 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_usb/reset_interface.c.obj 59334881e4428e6c
|
||||
242 515 1723392209721419171 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_math.c.obj 3bbeb3712ffba1fd
|
||||
235 288 1723392209714752380 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_aeabi_rp2040.S.obj dc7bc9b9f228e45d
|
||||
23 43 1723293085956831034 pico-sdk/src/rp2040/boot_stage2/bs2_default_padded_checksummed.S 318a2738173b0ef
|
||||
180 272 1723392209661418074 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_runtime_init/runtime_init.c.obj 864c7d747ee9a88c
|
||||
11 144 1723392209491414969 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/sem.c.obj 6ba1532dd850a302
|
||||
314 413 1723392209794753842 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_usb/stdio_usb_descriptors.c.obj fb5f9e69658d945a
|
||||
274 484 1723392209754753111 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_printf/printf.c.obj c119dd2a283293ef
|
||||
7 78 1723392209488081574 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/hardware_claim/claim.c.obj bf5b94f0af3c8afb
|
||||
263 411 1723392209744752929 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_atomic/atomic.c.obj 353abc4a6ff7850b
|
||||
411 535 1723392209891422274 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/device/usbd_control.c.obj ec8c45d04ecc039e
|
||||
197 226 1723392209678085044 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_bit_ops/bit_ops_aeabi.S.obj ed2e07f71bc84673
|
||||
20 83 1723392209501415152 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/common/pico_sync/lock_core.c.obj c6034d3dc9845e89
|
||||
321 417 1723392209801420630 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_unique_id/unique_id.c.obj 3ad19536846ecf6f
|
||||
290 465 1723392209771420085 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_uart/stdio_uart.c.obj cbc14186d26c5310
|
||||
256 290 1723392209734752746 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_float/float_v1_rom_shim_rp2040.S.obj e0dca31a0e9e2a17
|
||||
488 542 1723392209968090341 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/video/video_device.c.obj 8db64cce944feca8
|
||||
8 53 1723392209488081574 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_sync_spin_lock/sync_spin_lock.c.obj dfd6df79ee0f1fc
|
||||
5 193 1723410082778654001 build.ninja a6f675a7dc88903b
|
||||
114 201 1723392209594750189 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_pll/pll.c.obj 53408488628887cf
|
||||
213 237 1723392209694752018 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_divider/divider_hardware.S.obj e99be23a5f99db13
|
||||
485 585 1723392209964756947 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/class/vendor/vendor_device.c.obj 6ca66e07aa2a9479
|
||||
23 43 1723293085956831034 /home/user/Documents/pico/dht11/build/pico-sdk/src/rp2040/boot_stage2/bs2_default_padded_checksummed.S 318a2738173b0ef
|
||||
162 222 1723392209644751103 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_xosc/xosc.c.obj 3752b12c3f190bd5
|
||||
288 435 1723392209768086689 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_clib_interface/newlib_interface.c.obj 14b2a2b68d885b91
|
||||
6 106 1723392209488081574 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdlib/stdlib.c.obj 845f31e91253f78b
|
||||
503 617 1723392209984757312 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/common/tusb_fifo.c.obj b10023bd61030a80
|
||||
210 263 1723392209691418622 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_boot_lock/boot_lock.c.obj 98f5f62a82ab8813
|
||||
405 616 1723392209884755488 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/device/usbd.c.obj 640412130b361c7c
|
||||
126 220 1723392209608083768 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/hardware_watchdog/watchdog.c.obj fbf61b5aed7d302b
|
||||
304 436 1723392209784753659 CMakeFiles/dht11.dir/home/user/.pico-sdk/sdk/2.0.0/src/rp2_common/pico_stdio_usb/stdio_usb.c.obj 1027833ff45eb35
|
||||
|
|
Binary file not shown.
BIN
build/CMakeFiles/dht11.dir/display.c.obj
Normal file
BIN
build/CMakeFiles/dht11.dir/display.c.obj
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
build/dht11.bin
BIN
build/dht11.bin
Binary file not shown.
26318
build/dht11.dis
26318
build/dht11.dis
File diff suppressed because it is too large
Load diff
BIN
build/dht11.elf
BIN
build/dht11.elf
Binary file not shown.
2784
build/dht11.elf.map
2784
build/dht11.elf.map
File diff suppressed because it is too large
Load diff
BIN
build/dht11.uf2
BIN
build/dht11.uf2
Binary file not shown.
93
dht11.c
93
dht11.c
|
@ -2,16 +2,19 @@
|
|||
#include "pico/stdlib.h"
|
||||
#include "hardware/gpio.h"
|
||||
|
||||
#define PIN 16
|
||||
#include "display.h"
|
||||
|
||||
#define PIN 20
|
||||
#define MAX_TRANSITIONS 100
|
||||
|
||||
void prepare_sensor() {
|
||||
gpio_init(PIN);
|
||||
gpio_set_dir(PIN, GPIO_OUT);
|
||||
|
||||
gpio_put(PIN, true);
|
||||
sleep_ms(1000);
|
||||
}
|
||||
|
||||
void ask_sensor() {
|
||||
gpio_put(PIN, false);
|
||||
sleep_ms(20);
|
||||
|
||||
|
@ -55,58 +58,68 @@ bool read_to_variables(uint64_t data, float *humidity, float *temperature) {
|
|||
}
|
||||
|
||||
int main() {
|
||||
stdio_init_all();
|
||||
stdio_usb_init();
|
||||
|
||||
uint32_t transitions[MAX_TRANSITIONS];
|
||||
uint8_t transitions_count = 0;
|
||||
bool state = true;
|
||||
stdio_init_all();
|
||||
|
||||
initialize_display();
|
||||
display_digit(11);
|
||||
int disp = 11;
|
||||
|
||||
printf("Initializing sensor...\n");
|
||||
gpio_init(PIN);
|
||||
prepare_sensor();
|
||||
|
||||
uint32_t start = time_us_32();
|
||||
uint32_t time_now = start;
|
||||
|
||||
while (time_now - start < 100000) {
|
||||
time_now = time_us_32();
|
||||
bool new_state = gpio_get(PIN);
|
||||
if (new_state != state) {
|
||||
transitions[transitions_count++] = time_now;
|
||||
state = new_state;
|
||||
}
|
||||
}
|
||||
while (true) {
|
||||
printf("\n");
|
||||
|
||||
if (transitions_count > 0) {
|
||||
printf("Transitions: %d\n", transitions_count);
|
||||
printf("Time taken: %dus\n", transitions[transitions_count - 1] - start);
|
||||
uint32_t transitions[MAX_TRANSITIONS];
|
||||
uint8_t transitions_count = 0;
|
||||
bool state = true;
|
||||
|
||||
for (int i=0; i<transitions_count; i++) {
|
||||
printf("#%d to %s after %dus\n", i, (i % 2 == 0 ? "low" : "high"), transitions[i] - start);
|
||||
start = transitions[i];
|
||||
}
|
||||
ask_sensor();
|
||||
|
||||
uint32_t start = time_us_32();
|
||||
uint32_t time_now = start;
|
||||
|
||||
uint64_t output = read_bytes(transitions, transitions_count);
|
||||
|
||||
float temperature, humidity;
|
||||
bool valid = read_to_variables(output, &temperature, &humidity);
|
||||
|
||||
uint secs = 0;
|
||||
while (true) {
|
||||
printf("\n");
|
||||
if (secs++ > 3) {
|
||||
printf("Results are from %d seconds ago\n", secs);
|
||||
while (time_now - start < 100000) {
|
||||
time_now = time_us_32();
|
||||
bool new_state = gpio_get(PIN);
|
||||
if (new_state != state) {
|
||||
transitions[transitions_count++] = time_now;
|
||||
state = new_state;
|
||||
}
|
||||
}
|
||||
|
||||
if (transitions_count > 0) {
|
||||
printf("Transitions: %d\n", transitions_count);
|
||||
printf("Time taken: %dus\n", transitions[transitions_count - 1] - start);
|
||||
|
||||
for (int i=0; i<transitions_count; i++) {
|
||||
printf("#%d to %s after %dus\n", i, (i % 2 == 0 ? "low" : "high"), transitions[i] - start);
|
||||
start = transitions[i];
|
||||
}
|
||||
|
||||
uint64_t output = read_bytes(transitions, transitions_count);
|
||||
|
||||
float temperature, humidity;
|
||||
bool valid = read_to_variables(output, &temperature, &humidity);
|
||||
|
||||
printf("Temperature: %f\n", temperature);
|
||||
printf("Humidity: %f\n", humidity);
|
||||
printf("Valid: %s\n", valid ? "yes" : "no");
|
||||
sleep_ms(1000);
|
||||
}
|
||||
} else {
|
||||
while (true) {
|
||||
|
||||
int d = humidity / 10;
|
||||
if (d > 10) d = 10;
|
||||
display_animate(disp, d);
|
||||
disp = d;
|
||||
} else {
|
||||
display_animate(disp, 10);
|
||||
disp = 10;
|
||||
printf("Error reading\n");
|
||||
sleep_ms(1000);
|
||||
}
|
||||
|
||||
prepare_sensor();
|
||||
sleep_ms(1000);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
73
display.c
Normal file
73
display.c
Normal file
|
@ -0,0 +1,73 @@
|
|||
#include "pico/stdlib.h"
|
||||
#include "hardware/gpio.h"
|
||||
#include "hardware/pwm.h"
|
||||
|
||||
#define STEPS 50
|
||||
#define ANIMATION_DELAY 1
|
||||
|
||||
// AAA
|
||||
// F B
|
||||
// GGG
|
||||
// E C
|
||||
// DDD o (DP)
|
||||
|
||||
// order: A B C D E F G DP
|
||||
const uint8_t LED_PINS[] = {15, 14, 16, 19, 18, 12, 13, 17};
|
||||
|
||||
// I probably could make each pattern byte
|
||||
const bool DIGITS[12][8] = {
|
||||
{1, 1, 1, 1, 1, 1, 0, 1}, // 0
|
||||
{0, 1, 1, 0, 0, 0, 0, 1}, // 1
|
||||
{1, 1, 0, 1, 1, 0, 1, 1}, // 2
|
||||
{1, 1, 1, 1, 0, 0, 1, 1}, // 3
|
||||
{0, 1, 1, 0, 0, 1, 1, 1}, // 4
|
||||
{1, 0, 1, 1, 0, 1, 1, 1}, // 5
|
||||
{1, 0, 1, 1, 1, 1, 1, 1}, // 6
|
||||
{1, 1, 1, 0, 0, 0, 0, 1}, // 7
|
||||
{1, 1, 1, 1, 1, 1, 1, 1}, // 8
|
||||
{1, 1, 1, 1, 0, 1, 1, 1}, // 9
|
||||
{0, 0, 0, 0, 0, 0, 1, 0}, // -
|
||||
{0, 0, 0, 0, 0, 0, 0, 1}, // .
|
||||
};
|
||||
|
||||
void initialize_display() {
|
||||
for (int i=0; i<8; i++) {
|
||||
//gpio_init(LED_PINS[i]);
|
||||
//gpio_set_dir(LED_PINS[i], GPIO_OUT);
|
||||
//gpio_put(LED_PINS[i], true);
|
||||
gpio_set_function(LED_PINS[i], GPIO_FUNC_PWM);
|
||||
pwm_set_gpio_level(LED_PINS[i], STEPS);
|
||||
|
||||
uint8_t slice_num = pwm_gpio_to_slice_num(LED_PINS[i]);
|
||||
pwm_set_wrap(slice_num, STEPS);
|
||||
pwm_set_enabled(slice_num, true);
|
||||
}
|
||||
}
|
||||
|
||||
void display_digit(int digit) {
|
||||
for (int i=0; i<8; i++) {
|
||||
pwm_set_gpio_level(LED_PINS[i], DIGITS[digit][i] ? 0 : STEPS);
|
||||
}
|
||||
}
|
||||
|
||||
void display_animate(int from, int to) {
|
||||
int delta[9];
|
||||
for (int i=0; i<8; i++) {
|
||||
delta[i] = DIGITS[to][i] - DIGITS[from][i];
|
||||
}
|
||||
|
||||
for (int step=0; step<=STEPS; step++) {
|
||||
|
||||
for (int i=0; i<8; i++) {
|
||||
if (delta[i] == 0) continue;
|
||||
if (delta[i] == 1) {
|
||||
pwm_set_gpio_level(LED_PINS[i], STEPS-step);
|
||||
}
|
||||
if (delta[i] == -1) {
|
||||
pwm_set_gpio_level(LED_PINS[i], step);
|
||||
}
|
||||
}
|
||||
|
||||
sleep_ms(ANIMATION_DELAY);
|
||||
}
|
||||
}
|
3
display.h
Normal file
3
display.h
Normal file
|
@ -0,0 +1,3 @@
|
|||
void initialize_display();
|
||||
void display_digit(int digit);
|
||||
void display_animate(int from, int to);
|
5
stub_display.c
Normal file
5
stub_display.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
// this file replaces display.c if you don't want display
|
||||
|
||||
void initialize_display() {}
|
||||
void display_digit(int digit) {}
|
||||
void display_animate(int from, int to) {}
|
Loading…
Reference in a new issue