Skip to content

Commit

Permalink
Separate push and pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
leollo98 committed Jan 5, 2025
1 parent 176e052 commit f645eed
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: CI
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

jobs:
CI:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on:
pull_request:
branches: [ '*' ]

jobs:
CI:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: arduino lint action
uses: arduino/[email protected]
with:
verbose: true
6 changes: 5 additions & 1 deletion AD7606.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ void AD7606::setOversampling(uint8_t times){
digitalWrite(_OS2,bitRead(B100,times));
}

void AD7606::setRange(bool range){
void AD7606::extendedRange(bool range){
pinMode(_RANGE,OUTPUT);
digitalWrite(_RANGE,range);
}

void AD7606::setRange(bool range){
extendedRange(range);
}

// Constructor for emulated SPI comunication
AD7606_ESPI::AD7606_ESPI(int DB7, int DB8, int RD, int CS, int CONVSTA, int CONVSTB, int BUSY, int RESET)
{
Expand Down
1 change: 1 addition & 0 deletions AD7606.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class AD7606
public:
void setOversampling(uint8_t);
void setRange(bool);
void extendedRange(bool);
};

class AD7606_ESPI : public AD7606
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ The total time with Vdrive between 3.3V to 5.25V is 5µs, with Vdrive equal to 2

## Future ideas & improvements

- Improve documentation
- More examples ?

- Real SPI mode


## Examples
Expand Down
11 changes: 0 additions & 11 deletions library.properties

This file was deleted.

0 comments on commit f645eed

Please sign in to comment.