This website works better with JavaScript.
Home
Explore
Help
Sign In
visus
/
teensy-core-4.1
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
add analogWriteResolution()
teensy4-core
PaulStoffregen
6 years ago
parent
b9066ead1f
commit
efc41ea92d
1 changed files
with
9 additions
and
1 deletions
Unified View
Show Diff Stats
+9
-1
teensy4/pwm.c
+ 9
- 1
teensy4/pwm.c
View File
uint32_t analogWriteRes(uint32_t bits)
uint32_t analogWriteRes(uint32_t bits)
{
{
return 0;
uint32_t prior;
if (bits < 1) {
bits = 1;
} else if (bits > 16) {
bits = 16;
}
prior = analog_write_res;
analog_write_res = bits;
return prior;
}
}
Write
Preview
Loading…
Cancel
Save