Can someone point me to the board definition files and the Write library to use with the SWR/Power sensor in the Sbitx?
The one board file that I did find is from DigiSpark.? I can compile and load the sample blink program.? I can not compile the swr_bridge.ini sketch.? I get an error that Wire.begin(8) is not defined.
Error Log:
C:\Users\elhan\OneDrive\Documents\_Dev\HamRadio\_uBitx\sBITX\sBITX V2\sbitx-main v2.1\sbitx-main\swr_bridge\swr_bridge.ino: In function 'void setup()':
C:\Users\elhan\OneDrive\Documents\_Dev\HamRadio\_uBitx\sBITX\sBITX V2\sbitx-main v2.1\sbitx-main\swr_bridge\swr_bridge.ino:31:15: error: no matching function for call to 'USI_TWI::begin(int)'
? ?Wire.begin(8);? ? ? ? ? ? ? ? // join i2c bus with address #8
? ? ? ? ? ? ? ?^
C:\Users\elhan\OneDrive\Documents\_Dev\HamRadio\_uBitx\sBITX\sBITX V2\sbitx-main v2.1\sbitx-main\swr_bridge\swr_bridge.ino:31:15: note: candidate is:
In file included from C:\Users\elhan\OneDrive\Documents\_Dev\HamRadio\_uBitx\sBITX\sBITX V2\sbitx-main v2.1\sbitx-main\swr_bridge\swr_bridge.ino:19:0:
C:\Users\elhan\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\Wire/Wire.h:57:13: note: void USI_TWI::begin()
? ? ?void? ? begin();
? ? ? ? ? ? ?^
C:\Users\elhan\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\Wire/Wire.h:57:13: note:? ?candidate expects 0 arguments, 1 provided
C:\Users\elhan\OneDrive\Documents\_Dev\HamRadio\_uBitx\sBITX\sBITX V2\sbitx-main v2.1\sbitx-main\swr_bridge\swr_bridge.ino:32:8: error: 'class USI_TWI' has no member named 'onRequest'
? ?Wire.onRequest(requestEvent); // register event
? ? ? ? ^
?
exit status 1
?
Compilation error: no matching function for c
Any help is apricated.
73
Evan
AC9TU