Jump to content

Maceraperest

Members
  • Content Count

    12
  • Joined

  • Last visited

About Maceraperest

  • Rank
    Member

Contact Methods

  • Website URL
    http://www.siberlojik.com

Profile Information

  • Location
    Turkey
  1. Maceraperest

    Nokia 5110 (Bit Bang) LCD Driver

    tm4c123g board energia Do setting software
  2. I do not know in converting from arduino energia Please help to translate this code; #define TCD_SH 0x01 #define TCD_CLK1 0x02 #define TCD_CLK2 0x04 #define TCD_BT 0x08 #define TCD_RS 0x10 void tcd1201d_setup() { DDRB = 0x1F; } //byte tcd1201d_out[1047]; void tcd1201d_read() { PORTB = TCD_SH | TCD_CLK1; PORTB = TCD_CLK1; for (int i = 0; i < 1047; ++i) { PORTB = TCD_CLK1; PORTB = TCD_RS | TCD_CLK1; PORTB = TCD_RS | TCD_BT | TCD_CLK1; PORTB = TCD_BT | TCD_CLK1; PORTB = TCD_BT | TCD_CLK2; PORTB = TCD_CLK2; PORTB = TCD_RS | TCD_CLK2; PORTB = TCD_RS | TCD_BT | TCD_CLK2; PORTB = TCD_BT | TCD_CLK2; PORTB = TCD_BT | TCD_CLK1; Serial.print(","); byte v = analogRead(A0); //tcd1201d_out[i] = v; //Serial.print(tcd1201d_out[i]); //unsigned //Serial.print(i); //Serial.print(","); Serial.print(v); } Serial.println(); } void setup() { analogReference(DEFAULT); tcd1201d_setup(); Serial.begin(115200); } void loop() { tcd1201d_read(); } tcd1201d.ino
  3. Maceraperest

    Arduino to Energia Code

    #define TCD_SH 0x01 ====> Does anyone know what this is port ? PE_4 or PB_2 =====> How to return
  4. Maceraperest

    Arduino to Energia Code

    Convert to energia please...
  5. Maceraperest

    Arduino to Energia Code

    Do you understand the port salute code ? #define TCD_SH 0x01 //====> What means this port #define TCD_CLK1 0x02 #define TCD_CLK2 0x04 #define TCD_BT 0x08 #define TCD_RS 0x10 void tcd1201d_setup() { DDRB = 0x1F; } unsigned char tcd1201d_out[1047]; int tcd1201d_dark; void tcd1201d_read() { PORTB = TCD_SH | TCD_CLK1; PORTB = TCD_CLK1; for (int i = 0; i < 1047; ++i) { PORTB = TCD_CLK1; PORTB = TCD_RS | TCD_CLK1; PORTB = TCD_RS | TCD_BT | TCD_CLK1; PORTB = TCD_BT | TCD_CLK1; PORTB = TCD_BT | TCD_CLK2; // Could read here too, but we'll skip half of them. PORTB = TCD_CLK2; PORTB = TCD_RS | TCD_CLK2; PORTB = TCD_RS | TCD_BT | TCD_CLK2; PORTB = TCD_BT | TCD_CLK2; PORTB = TCD_BT | TCD_CLK1; int v = analogRead(A0); if (i == 14) tcd1201d_dark = v; if (v > tcd1201d_dark) v = tcd1201d_dark; v = (tcd1201d_dark - v) / 2; if (v > 255) v = 255; tcd1201d_out[i] = v; } } void setup() { analogReference(DEFAULT); tcd1201d_setup(); Serial.begin(115200); } void loop() { tcd1201d_read(); tcd1201d_read(); for (int i = 0; i < 1047; ++i) { Serial.print(tcd1201d_out[i], HEX); } Serial.println(); } tcd1201.ino
  6. Maceraperest

    Serial Communication Between Two Tiva™ C Series

    I want to relay to drive with 74HC595 (Shift Register). Do not take into account the above code
  7. Maceraperest

    Serial Communication Between Two Tiva™ C Series

    where is the problem const int ledPin = GREEN_LED; void setup() { Serial.begin(9600); pinMode(ledPin, OUTPUT); } void loop() { int inByte = Serial.read(); if (inByte == 5) { digitalWrite(ledPin, HIGH); } else { digitalWrite(ledPin, LOW); } }
  8. Maceraperest

    Serial Communication Between Two Tiva™ C Series

    For serial ports, wiring should be basically Rx to Tx and Tx to Rx. Solves my problem. Thanks igor.
  9. How do I ; Serial Communication Between Two Tiva™ C Series ek-tm4c123gxl. my best compliments
  10. Maceraperest

    Serial Communication Between Two Tiva-C Series

    Examples arduino two arduino
  11. How do I ; Serial Communication Between Two Tiva™ C Series ek-tm4c123gxl
  12. 2.2" TFT cable tmc4c123g connecting how to please
×