AlexanderMandera / arduino-wch32v003

Arduino Core for CH32V003 RISC-V microcontroller
GNU Lesser General Public License v2.1
154 stars 18 forks source link

No analogread or analogwrite :/ #13

Open MangyCat opened 1 year ago

MangyCat commented 1 year ago

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 toanalogRead' (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

pixelEDI commented 1 year ago

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