Skip to content

agruminolemon board definition fixes #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 17, 2021
Merged

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Feb 17, 2021

removed .orig files
removed some menu entries

Can you please try this menu and tell what's wrong or missing ?

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

specifically:

  • what is the reset method ?
  • flash frequency ?
  • other specifics or hardcoded entries ?

You can try this pull request by downloading this file boards.txt

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

You defined a variant but there's no file, I'm adding one.
How do you want to name your GPIO ?

example with wemos d1 mini (variants/d1_mini/)
what names for the GPIO ?
what value for the builtin-led ? another one like in variant/nodemcu ?

#ifndef LED_BUILTIN
#define LED_BUILTIN 2
#endif
#define LED_BUILTIN_AUX 16

d1_mini:

#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#define PIN_WIRE_SDA (4)
#define PIN_WIRE_SCL (5)

static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;

#define LED_BUILTIN 2

static const uint8_t D0   = 16;
static const uint8_t D1   = 5;
static const uint8_t D2   = 4;
static const uint8_t D3   = 0;
static const uint8_t D4   = 2;
static const uint8_t D5   = 14;
static const uint8_t D6   = 12;
static const uint8_t D7   = 13;
static const uint8_t D8   = 15;
static const uint8_t RX   = 3;
static const uint8_t TX   = 1;

#include "../generic/common.h"

#endif /* Pins_Arduino_h */

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

About this comment, esp8266#7883 (comment)
You need to get the latest master of the core, you seem to have an older version
(git pull remote-name master)

@Bighoneypot
Copy link
Owner

specifically:

  • what is the reset method ?
  • flash frequency ?
  • other specifics or hardcoded entries ?

You can try this pull request by downloading this file boards.txt

Built in led 2
CPU frequency 80Mhz and 160Mhz
Flash size 2MB (FS:none OTA:~1008KB)

GPIO are hardcoded into our libraries (only 2 Gpio available and I2C)

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

GPIO are hardcoded into our libraries (only 2 Gpio available and I2C)

What are they and their name ?

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

Flash size 2MB (FS:none OTA:~1008KB)

pushed.

The boards.txt file link above is always valid, you can re-download it and try.

Copy link
Owner

@Bighoneypot Bighoneypot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, perfect

Copy link
Owner

@Bighoneypot Bighoneypot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

How should the variant file be modified ?

https://github.com/d-a-v/Arduino/blob/bhp/variants/agruminolemonv4/pins_arduino.h

@Bighoneypot
Copy link
Owner

Come dovrebbe essere modificato il file variante?

https://github.com/dav/Arduino/blob/bhp/variants/agruminolemonv4/pins_arduino.h

How should the variant file be modified ?

https://github.com/d-a-v/Arduino/blob/bhp/variants/agruminolemonv4/pins_arduino.h

// PINOUT Agrumino Implemented
#define PIN_SDA 2 // [X] BOOT: Must be HIGH at boot
#define PIN_SCL 14 // [X]
#define PIN_PUMP 12 // [X]
#define PIN_BTN_S1 4 // [X] Same as Internal WT8266 LED
#define PIN_USB_DETECT 5 // [X]
#define PIN_MOSFET 15 // [X] BOOT: Must be LOW at boot
#define PIN_BATT_STAT 13 // [X]
#define PIN_LEVEL 0 // [ ] BOOT: HIGH for Running and LOW for Program

@Bighoneypot
Copy link
Owner

I don't have understand this ......
You can try this pull request by downloading this file boards.txt

Copy link
Owner

@Bighoneypot Bighoneypot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

I don't have understand this ......

The link is copied here. The content is updated at every pushed.
boards.txt: https://raw.githubusercontent.com/d-a-v/Arduino/bhp/boards.txt
variant file: https://raw.githubusercontent.com/d-a-v/Arduino/bhp/variants/agruminolemonv4/pins_arduino.h

@Bighoneypot
Copy link
Owner

About this comment, esp8266#7883 (comment)
You need to get the latest master of the core, you seem to have an older version
(git pull remote-name master)

Now you see if the current version is latest version?

@Bighoneypot
Copy link
Owner

I don't have understand this ......

The link is copied here. The content is updated at every pushed.
boards.txt: https://raw.githubusercontent.com/d-a-v/Arduino/bhp/boards.txt
variant file: https://raw.githubusercontent.com/d-a-v/Arduino/bhp/variants/agruminolemonv4/pins_arduino.h

but now I have to copy these files to my repository and then do a push

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

Now you see if the current version is latest version?

It seems to be OK

but now I have to copy these files to my repository and then do a push

No, you can click on "merge pull request", then on your computer git pull <your-remote-name> master and you'll have them on your computer

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

And if that's OK, you can make a new pull request on esp8266/Arduino

@Bighoneypot Bighoneypot merged commit 40614dd into Bighoneypot:master Feb 17, 2021
@Bighoneypot
Copy link
Owner

Now you see if the current version is latest version?

It seems to be OK

but now I have to copy these files to my repository and then do a push

No, you can click on "merge pull request", then on your computer git pull <your-remote-name> master and you'll have them on your computer

I have send merge pull request

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

Are you OK with the menu ?

@d-a-v
Copy link
Collaborator Author

d-a-v commented Feb 17, 2021

Bene!

Mind you :)

In french and Italian, this word has a totally different meaning :)

@Bighoneypot
Copy link
Owner

Bighoneypot commented Feb 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants