开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Board files for the ATTiny85 #sBitx


Jack, W8TEE
 

Evan:

I forgot: the error message: Wire.onRequest(requestEvent) suggests the library has a method named onRequest() with an argument that's likely an int. You might try search for this method first.

Jack, W8TEE

On Wednesday, May 31, 2023 at 10:09:20 PM EDT, Jack, W8TEE via groups.io <jjpurdum@...> wrote:


Evan:

The error message: no matching function for call to 'USI_TWI::begin(int) is almost always associated with the wrong library...wrong, not missing. The second error says that one argument was supplied, but 0 arguments were expected. Again, wrong library.

There are multiple Wire libraries out there. I would start searching the Wire libraries that are available, looking at the begin() method in the Wire class. Search for begin() or begin(void) and see which libraries have the proper prototype.

Jack, W8TEE

On Wednesday, May 31, 2023 at 10:01:12 PM EDT, Evan Hand <elhandjr@...> wrote:


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

--
Jack, W8TEE

--
Jack, W8TEE

Join [email protected] to automatically receive all group messages.