arduino-wch32v003 icon indicating copy to clipboard operation
arduino-wch32v003 copied to clipboard

No analogread or analogwrite :/

Open MangyCat opened this issue 2 years ago • 2 comments

I tried compiling an sketch for my ch32v003, everything else works fine, except analogwrite aswell and analogread i got this error

riscv-none-elf-g++: warning: '-x c++' after last input file has no effect /home/etore/.arduino15/packages/alexandermandera/tools/riscv-none-elf-gcc/12.2.0-3-xPack/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: /tmp/ccBBIZmj.ltrans0.ltrans.o: in function .L0 ': /home/etore/Arduino/pcmplayerch32v003/pcmplayerch32v003.ino:9: undefined reference to analogRead' (this is the important part) collect2: error: ld returned 1 exit status exit status 1 Error compiling for board CH32V003.

And also an undefined reference to "analogwrite"

I understand you haven't implemented everything yet, but i would love for analogwrite and analogread to be implemented instead of having to resort to using digitalwrite and simulated pwm instead of analogwrite

MangyCat avatar Nov 12 '23 11:11 MangyCat

Hey, no analogRead has been implemented yet. I am also waiting hard for this :)

pixelEDI avatar Nov 12 '23 11:11 pixelEDI