Recent Posts

Pages: [1] 2 3 ... 10
1
Français / Re: Clavier USB Arduino
Last post by Grimdrasil - Today at 12:29 pm
Problème résolu j'ai utilisé :
Code: [Select]
if (strcmp (Prs.QRCodeBuffer, "0140699120204") ==1)

et ça fonctionne très bien.
2
What is it that is being detected by the sensors ?
3
Programming Questions / Re: 2D string Array
Last post by Whandall - Today at 12:28 pm
After making your 3D array really a 2D array, it could be printed like so:

Code: [Select]
const char * const churchCalender[][5] PROGMEM = {
  {"01/01" , "sunday" , "white" , "Van", "R1 num.6.22-27 R2 Gal.4.4-7 Gos.Lk.2.16-21"},
  {"02/01" , "monday" , "white" , "Beat", "R1 1Jn.2:22-28 Gosp.Jn.1.19-28"},
  {"03/01" , "tuesday" , "white" , "Not", "R1 1Jn.2:29-3:6 Gosp.Jn.1:29-34"},
  {"04/01" , "wednesday" , "white" , "take", "R1 1Jn.3:7-10 Gosp.Jn.1:35-42"}
};

void setup() {
  Serial.begin(250000);
  for (byte i = 0; i < sizeof(churchCalender) / sizeof(churchCalender[0]); i++) {
    Serial.print(F("{ "));
    for (byte j = 0; j < sizeof(churchCalender[0]) / sizeof(churchCalender[0][0]); j++) {
      Serial.write('"');
      const char * ptr = (const char *) pgm_read_word(&churchCalender[i][j]);
      if (ptr) {
        Serial.print(ptr);
      }
      Serial.print(F("\", "));
    }
    Serial.println(F("}, "));
  }
}
void loop() {}
Code: [Select]
{ "01/01", "sunday", "white", "Van", "R1 num.6.22-27 R2 Gal.4.4-7 Gos.Lk.2.16-21", },
{ "02/01", "monday", "white", "Beat", "R1 1Jn.2:22-28 Gosp.Jn.1.19-28", },
{ "03/01", "tuesday", "white", "Not", "R1 1Jn.2:29-3:6 Gosp.Jn.1:29-34", },
{ "04/01", "wednesday", "white", "take", "R1 1Jn.3:7-10 Gosp.Jn.1:35-42", },

Notice that only your pointers reside in PROGMEM, the strings stay in RAM if used like above.

See Storing and Retrieving Strings in the Program Space.
4
Français / Re: Comptage encodeurs rotatif...
Last post by Sonis - Today at 12:26 pm
Je peux pas dire exactement, peut-être 100g
5
Since you didn't post more specs about the tags, I am just guessing here. But it's possible that those tags are not supported. Here is more information:

https://github.com/miguelbalboa/rfid
6
Bar Sport / Re: [OT ITA] Lo spamm bar
Last post by Etemenanki - Today at 12:25 pm
Io vedo il solito nid69ita ... :)

Guglielmo
Anch'io ... probabilmente erano i residui dei giochini con lo script iniziati venerdi pomeriggio ... :D
7
Deutsch / Re: Probleme während und nach ...
Last post by michael_x - Today at 12:25 pm
Dafür kannst du übrigens deine 22 nF Kondensatoren verwenden, wenn der Verkäufer sie nicht zurücknimmt.
Zum Entstören der Versorgungsspannung werden 100 nF empfohlen, weil die auch nicht mehr kosten als kleinere.  Da ist 22 nF jedenfalls deutlich besser als gar keine ;)
8
Bar Sport / Re: [OT ITA] Lo spamm bar
Last post by Etemenanki - Today at 12:23 pm
Ecco, un megacluster wireless non lo vedo tanto bene, preferirei avere il NAS collegato direttamente al router con un bel cavo. Ma non sempre è possibile.
Si, sarebbe piu comodo ... ma se di mestiere fai la spia internazionale o il distributore di software e film piratati o un'altro lavoro "socialmente utile" dello stesso genere (:P :D), avere un server di stoccaggio non individuabile fisicamente, ti porterebbe un certo vantaggio ... :D :D :D
9
best to get a copy of the manufactures instructions and have your licensed electrician review.
They will advise if it meets local codes an such.

It would be horrible if we 'approved' and later your insurance said it was not per code and refused to cover losses.
10
Displays / Re: MCUFRIEND_kbv Library for ...
Last post by david_prentice - Today at 12:22 pm
Please add this case block to the begin() method in MCUFRIEND_kbv.cpp:
Code: [Select]

#define SUPPORT_1580
#ifdef SUPPORT_1580
    case 0x1580:
        _lcd_capable = 0 | REV_SCREEN | READ_BGR;
        static const uint16_t R61580_regValues[] PROGMEM = {
            // Synchronization after reset
            TFTLCD_DELAY, 2,
            0x0000, 0x0000,
            0x0000, 0x0000,
            0x0000, 0x0000,
            0x0000, 0x0000,

            // Setup display
            0x00A4, 0x0001,          // NVM_4  [0000] CALB=1
            TFTLCD_DELAY, 2,
            0x0060, 0xA700,          // Driver_2  [2700] GS=1
            0x0008, 0x0808,          // Display_2 [0808] BP=8, FP=8
            0x0030, 0x0111,          // y control
            0x0031, 0x2410,          // y control
            0x0032, 0x0501,          // y control
            0x0033, 0x050C,          // y control
            0x0034, 0x2211,          // y control
            0x0035, 0x0C05,          // y control
            0x0036, 0x2105,          // y control
            0x0037, 0x1004,          // y control
            0x0038, 0x1101,          // y control
            0x0039, 0x1122,          // y control
            0x0090, 0x0019,          // Panel_1 [0111] 80Hz
            0x0010, 0x0530,          // Power_1 [0530]
            0x0011, 0x0237,          // Power_2 [0237]
            0x0012, 0x01BF,          // Power_3 [018F] PSON=1, PON=1
            0x0013, 0x1300,          // Power_4 [0000] VDV=0x13
            TFTLCD_DELAY, 100,

            0x0001, 0x0100,          // DRVOUT_1 [0000] SS=1
            0x0002, 0x0200,          // LCD_DRV [0000] BC0=1
            0x0003, 0x1030,          // ENTRY   [0030] BGR=1
            0x0009, 0x0001,          // Displ_3 [0001]
            0x000A, 0x0008,          // Displ_4 [0000] FMARKOE=1
            0x000C, 0x0001,          // Ext_1   [0000] RIM=1
            0x000D, 0xD000,          // Frame Marker [0000] ????
            0x000E, 0x0030,          // VCOM_LP [0030]
            0x000F, 0x0000,          // EXT_2   [0000]
            //            0x0020, 0x0000,
            //            0x0021, 0x0000,
            0x0029, 0x0077,          // NVM_2   [00FF] VCM=0x77
            //            0x0050, 0x0000,
            //            0x0051, 0xD0EF,
            //            0x0052, 0x0000,
            //            0x0053, 0x013F,
            0x0061, 0x0001,          // Base_Image [0000] REV=1
            0x006A, 0x0000,          // Vert_scrl  [0000]
            0x0080, 0x0000,          // Partial_Image [0000]
            0x0081, 0x0000,          //               [0000]
            0x0082, 0x005F,          //               [0000] PTE=0x5F
            0x0093, 0x0701,          // Panel_3  [0101] VEQWI=3
            0x0007, 0x0100,          // Display_1  [0000] BASEE=1
        };
        init_table16(R61580_regValues, sizeof(R61580_regValues));
        break;
#endif

It should then identify ID=0x1580 and work with tft.begin(0x1580);

Please report back with any problems.   i.e. exactly which aspects are mirrored.
Yes,  it is very easy to fix.   But only if I get an accurate report.

David. 
Pages: [1] 2 3 ... 10