I got it the problem was I cut and pasted your logic and did not notice it had the wrong double quotes when it pasted it
I now have below and it compiles and loads and runs on my arduino but when i click my button nothing appears in my spinbox
the button is named button2 and the click value is unchecked and the press down value is checked with a value of 1 in the box next to it. the spin box is labeled spin_box1 any ideas?
thanks
David
#include “stone.h”
extern unsigned char receive_over_flage;
extern recive_group STONER;
extern unsigned char STONE_RX_BUF[RX_LEN];
int btn_nums=0;
char btn_numsc[10];
int my_status;
void loop() {
serial_receive();
if (receive_over_flage == 1) {
receive_over_flage = 0;
if(memcmp((char*)STONER.widget,”button2″,6)==0) {
btn_nums++;
sprintf(btn_numsc,”test %d”,btn_nums);
set_value(“spin_box”, “spin_box1”, btn_numsc, “%02d”);
}
}
}