sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
462 stars 179 forks source link

Temp example not working #169

Closed gesaleh closed 7 years ago

gesaleh commented 7 years ago

Hi I have a blend 2 I'm trying to use the library but it is failing for issue with timer

WARNING: library TimerOne claims to run on (avr) architecture(s) and may be incompatible with your current board which runs on (nRF5) architecture(s).
temp_sensor:140: error: 'class TimerOne' has no member named 'initialize'
   Timer1.initialize(2 * 1000000); // in milliseconds
          ^
temp_sensor:141: error: 'class TimerOne' has no member named 'attachInterrupt'
   Timer1.attachInterrupt(timerHandler);
          ^
exit status 1
'class TimerOne' has no member named 'initialize'

is there a specific path for this lib ? to work with nrf5 ?

gesaleh commented 7 years ago

I'm using arduino 1.8.3 and BLE Blend 2

sandeepmistry commented 7 years ago

This example only works on AVR boards, as the TimerOne library only supports AVR boards.