Comments (2)
The library is included in include/I2CEEPROM.h file
from timerinterrupt_generic.
You have to modify like this to use new C++ style hpp
- main.cpp or Teensy_minimal.ino
#include <Arduino.h>
#include "I2CEEPROM.h"
I2CEEPROM mem;
void setup()
{
}
void loop()
{
}
- I2CEEPROM.h
#ifndef I2CEEPROM_H
#define I2CEEPROM_H
#include <Arduino.h>
#include <Wire.h>
#include <math.h>
#include "TimerInterrupt_Generic.h"
class I2CEEPROM {};
#include "I2CEEPROM_Impl.hpp"
#endif
- I2CEEPROM_Impl.hpp
#ifndef I2CEEPROM_IMPL_HPP
#define I2CEEPROM_IMPL_HPP
#if ( defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) ||defined(STM32F4) || defined(STM32F7) || \
defined(STM32L0) || defined(STM32L1) || defined(STM32L4) || defined(STM32H7) ||defined(STM32G0) || defined(STM32G4) || \
defined(STM32WB) || defined(STM32MP1) )
STM32Timer DEVICE_TICK_TIMER(TIM2);
#elif ( defined(CORE_TEENSY) || defined(TEENSYDUINO) )
TeensyTimer DEVICE_TICK_TIMER(TEENSY_TIMER_3);
#endif
/*library code here*/
#endif // I2CEEPROM_IMPL_HPP
Compile is OK on Arduino IDE, and should be OK on PIO, unless you have wrong settings / configurations
from timerinterrupt_generic.
Related Issues (9)
- Support for STM32/STM32Duino? HOT 2
- Timer STM32 #error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting. HOT 1
- Doesn't compile for nrf52 boards with Arduino IDE HOT 2
- PlatformIO and Heltec WiFi LoRa V2 HOT 3
- Use of the code should be more generic cross-platform. HOT 1
- remove then reinstall? HOT 1
- Support for DX CORE CPU and MightyCORE CPU possible? HOT 9
- missing #include "TimerInterrupt_Generic_Debug.h" in ESP8266TimerInterrupt_Generic.h HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timerinterrupt_generic.