Example #1
0
void timer(){
	Timer _Timer(FREQ);
	DDRB = 0xFF;
	sei();
	while(true){
		_Timer.restart();
		while(_Timer.microseconds() < 500000);
		PORTB = ~ PORTB;
	}
}
inline bool bbTooltip::_Dispatch(UINT message, WPARAM wParam, LPARAM lParam)
{
    switch (message)
    {
        case WM_PAINT:
            _Paint();
            return true;

        case WM_TIMER:
            _Timer(wParam);
            return true;
    }
    return false;
}