1 5 1234 ...
1 10 44

:

  1. #1

    30.11.2021
    40

    , , 2000 . ? .


  2. #2
      cuneum
    28.12.2015
    -
    1,986
    1
    koks1960
    ?
    "rotary.h", 1. , .

    #define ENCODER_A 2 // Encoder pin A
    #define ENCODER_B 3 // Encoder pin B

    boolean encA = 1;
    boolean encB = 1;
    boolean encA_sav = 1;
    boolean encB_sav = 1;

    short incr;

    void setup ()
    {
    pinMode(ENCODER_A, INPUT_PULLUP);
    pinMode(ENCODER_B, INPUT_PULLUP);

    }


    boolean encoder()
    {
    encA = digitalRead(ENCODER_A);
    encB = digitalRead(ENCODER_B);

    if ((!encA & encA_sav) or (!encB & encB_sav))
    {
    if (encA > encB){
    incr = -1;
    return 1; //
    }
    else if (encA < encB){
    incr = 1;
    return 1; // , 11/22
    }

    encA_sav = encA;
    encB_sav = encB;

    return 1;
    }
    encA_sav = encA;
    encB_sav = encB;

    return 0;
    }


  3. #3

    30.11.2021
    40
    cuneum
    .
    . 328, . 328 :collect2.exe: error: ld returned 1 exit status. , . ?

  4. #4
      R9OFG
    16.11.2009
    1,023
    R9OFG, ex R0AEK
    koks1960, PB, ?

        . 

:	1.png 
:	138 
:	19.1  
ID:	397319

  5. #5
      cuneum
    28.12.2015
    -
    1,986
    1
    R9OFG
    PB, ?
    , Arduino IDE, , , -, .

  6. #6

    12.09.2006
    , , KN34PC
    1,850
    LZ2WSG
    SI47XX MCUdude/MiniCore ATmega328PB.
    , Arduino, . 5 .
        . 

:	lib_hdw.jpg 
:	84 
:	135.3  
ID:	397320       . 

:	si47xx.jpg 
:	76 
:	616.6  
ID:	397321  

  7. #7

    30.11.2021
    40
    veso74
    . 5 .
    328, 328, . MCUdude/MiniCore. R9OFG , , .

  8. #8

    12.09.2006
    , , KN34PC
    1,850
    LZ2WSG
    . 328PB: exit status 1 :/.
    ---
    arduino-ide_2.1.0 : Compilation error: exit status 1
    veso74; 22.01.2024 15:02.

  9. #9

    20.11.2007
    702
    1
    RA3PPV
    328p pb ?


  10. #10

    30.11.2021
    40
    Kim_Dim
    328p pb ?
    . .
    IDE 2.2.1 1.8.19
    C:\Users\12\AppData\ Local\Temp\arduino_b uild_240096/SI47XX_03_TFT_ATMEGA 328_ST7735.ino.elf section `.text'' will not fit in region `text'

    c:/users/12/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: region `text' overflowed by 950 bytes


    collect2.exe: error: ld returned 1 exit status

,

: 1 (: 0 , : 1)

  1. : 32
    : 05.02.2021, 23:50
  2. 144/435
    us4lf
    : 39
    : 08.09.2017, 19:13
  3. DDS
    gudzon-m
    : 35
    : 08.08.2016, 21:13
  4. catmasik
    : 51
    : 10.03.2015, 10:17
  5. -
    tetan
    : 61
    : 20.02.2012, 20:18

  •