Git Product home page Git Product logo

esp8266_easygpio's People

Contributors

eadf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp8266_easygpio's Issues

Going one step further

This is not an issue but I haven't found a way to send you a PM.

I wanted to let you know that I've started to port my hardware abstraction tool to the ESP. It is called HWA and you'll find it here on Github (https://github.com/duparq/hwa). I am just at the beginning with ESP but a few Atmel AVRs are almost fully implemented and there are examples to show how easy it makes things. Comments and suggestions welcome.

Regards.

Easygpio - Noduino-sdk

I'm adapting to run in noduino -sdk version. My problem is not having the libeasygpio.a . Where can I download or generate .

Interrupt attachment not working

How do I add a interrupt to GPIO 0

This seems not to work. Not sure if I need easygpio_pinMode before easygpio_attachInterrupt? I thought I might have forgotten some init function or similar, but I can not find any reference to it. What is wrong?

#include "osapi.h"
#include "easygpio.h"

int interruptOne = 42;

static void sonoffBtnInterrupt(void* arg) {
  uint8_t value = easygpio_inputGet(13);
  easygpio_outputSet(13, !value);
}

void ICACHE_FLASH_ATTR user_init() {
  easygpio_pinMode(13, EASYGPIO_PULLUP, EASYGPIO_OUTPUT);
  easygpio_outputSet(13, 0); // turn on

  //easygpio_pinMode(0, EASYGPIO_PULLUP, EASYGPIO_INPUT);
  bool success = easygpio_attachInterrupt(0, EASYGPIO_PULLUP, sonoffBtnInterrupt, &interruptOne);
  os_printf("easygpio_attachInterrupt success: %d\r\n", success);
}

Thanks in advance!

Missing open drain

I might be wrong but I THINK that open-drain settings are missing here. I note in the i2c example - they set the outputs as open drain like this..

//Set SCK as open drain
GPIO_REG_WRITE(
    GPIO_PIN_ADDR(GPIO_ID_PIN(I2C_SCK_PIN)), 
    GPIO_REG_READ(GPIO_PIN_ADDR(GPIO_ID_PIN(I2C_SCK_PIN))) | 
    GPIO_PIN_PAD_DRIVER_SET(GPIO_PAD_DRIVER_ENABLE)
);

Unclear License Not GPL?

What is the real license of this code? In the root directory it is GPL but in your individual c files it appears to be BSD 3-clause license

How many GPIOs can I use

How many GPIOs can I use with the ESP-07 or ESP-12? (not including ADC)
GPIO 15 is tied to ground and GPIO 0 is... well I hope that I can leave it.
Thanks

Make GPIO high

maybe I`m dumb but how can I set a gpio high?
I use this to specify which gpio pin i want and that the pin should be an output:

uint8_t gpio_pin = 0;
EasyGPIO_PinMode pinMode = EASYGPIO_OUTPUT;

But how can i set the level of the gpio to high or low now?

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.