Giter Club home page Giter Club logo

Comments (2)

Szum123321 avatar Szum123321 commented on June 12, 2024

The library is included in include/I2CEEPROM.h file

from timerinterrupt_generic.

khoih-prog avatar khoih-prog commented on June 12, 2024

You have to modify like this to use new C++ style hpp

  1. main.cpp or Teensy_minimal.ino
#include <Arduino.h>
#include "I2CEEPROM.h"

I2CEEPROM mem;

void setup() 
{
}

void loop() 
{
}

  1. 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

  1. 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

Selection_746

from timerinterrupt_generic.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.