Subversion Repositories group.electronics

Rev

Rev 189 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 189 Rev 190
Line 157... Line 157...
157
            if (this.flap_value != this.flap_shadow) {
157
            if (this.flap_value != this.flap_shadow) {
158
 
158
 
159
                BitImage flap_rotate = new BitImage(flap_needle);
159
                BitImage flap_rotate = new BitImage(flap_needle);
160
                BitImage flap_display = new BitImage(flap_background);
160
                BitImage flap_display = new BitImage(flap_background);
161
 
161
 
162
                UInt16 flap_set = Globals.map_uint16(flap_value, 0, 0xffff, 0, 90);
162
                UInt16 flap_set = Globals.map_uint16(flap_value, 0, 0xffff, 0, 60);
163
                flap_rotate.rotate(flap_set);
163
                flap_rotate.rotate(flap_set);
164
                flap_display.blit(flap_rotate, 60, 4);
164
                flap_display.blit(flap_rotate, 60, 4);
165
                oled.buffer = flap_display.toByteArray();
165
                oled.buffer = flap_display.toByteArray();
166
                oled.i2c.SetGpio(1, 1);
166
                oled.i2c.SetGpio(1, 1);
167
                oled.display();
167
                oled.display();