(Arduino) Mostrar letras en Rich Shield de OPEN SMART

Hola, hace poco, en concreto hoy, me ha mandado un suscriptor, una tarea, y es que no conseguía mostrar letras en la pantalla de Rich Shield de OPEN SMART, este código que voy a hacer es muy básico, más abajo pongo los enlaces, ya que todo este código tiene un trabajo y evidentemente no ha salido en 3 horas, de mi cabeza, voy a modificar los archivos de ejemplo de RichShieldTM1637.h y RichShieldTM1637.cpp, no os olvidéis de hacer copias de seguridad, un saludo.

Edito «RichShieldTM1637.h»

 void TM1637::displaySegments(uint8_t BitAddr,int8_t SegData);

Edito:  «RichShieldTM1637.cpp»

void TM1637::displaySegments(uint8_t BitAddr,int8_t SegData)
{
start(); //start signal sent to TM1637 from MCU
writeByte(ADDR_FIXED);//
stop(); //
start(); //
writeByte(BitAddr|0xc0);//
writeByte(SegData);//
stop(); //
start(); //
writeByte(Cmd_DispCtrl);//
stop(); //
}
El código que usé ha sido este:
#include <Wire.h>
//#include «RichShieldKEY.h»

#include «RichShieldTM1637.h»
#define CLK 10//CLK of the TM1637 IC connect to D10 of OPEN-SMART UNO R3
#define DIO 11//DIO of the TM1637 IC connect to D11 of OPEN-SMART UNO R3
TM1637 disp(CLK,DIO);


int count = 0;
#define SIMBOLO_A 0b01110111            //  A
#define SIMBOLO_a 0b01011111            //  a 
#define SIMBOLO_b 0b01111100            //  b
#define SIMBOLO_C 0b00111001            //  C
#define SIMBOLO_c 0b01011000            //  c
#define SIMBOLO_d 0b01011110            //  d
#define SIMBOLO_E 0b01111001            //  E
#define SIMBOLO_F 0b01110001            //  F
#define SIMBOLO_G 0b00111101            //  G
#define SIMBOLO_g 0b01101111            //  g
#define SIMBOLO_H 0b01110110            //  H
#define SIMBOLO_h 0b01110100            //  h
#define SIMBOLO_I 0b00110000            //  I
#define SIMBOLO_i 0b00010000            //  i
#define SIMBOLO_J 0b00011110            //  J
#define SIMBOLO_L 0b00111000            //  L 
#define SIMBOLO_N 0b00110111            //  ‘N’ o ‘M’
#define SIMBOLO_n 0b01010100            //  n 
#define SIMBOLO_O 0b00111111            //  O (0)
#define SIMBOLO_o 0b01011100            //  o  
#define SIMBOLO_P 0b01110011            //  P
#define SIMBOLO_q 0b01100111            //  q
#define SIMBOLO_r 0b01010000            //  r  
#define SIMBOLO_S 0b01101101            //  S (5)
#define SIMBOLO_t 0b01111000            //  t 
#define SIMBOLO_U 0b00111110            //  U ‘V’ 
#define SIMBOLO_v 0b00011100            //  v 
#define SIMBOLO_Y 0b01101110            //  Y  
#define SIMBOLO_Z 0b01011011            //  Z (2)
void setup()
{
  disp.init();//The initialization of the display
 // disp.display(count);//display counter number
 disp.set(2);
// disp.displaySegments(0, SIMBOLO_T);
 disp.displaySegments(1, SIMBOLO_O);
 disp.displaySegments(2, SIMBOLO_v);
 disp.displaySegments(3, SIMBOLO_Y);
  // disp.display(74, 6f, 6d, 79);
   
}

void loop()
{
  
  
  delay(50);//
}

Pues nada Viren Sibaja la verdad me ha encantado hacer esto, espero que te haya servido, y nada que lo disfrutes, la verdad esta placa a mi me encanta. Ya sabéis si tenéis algún «reto» o algo que os gustaría hacer con Rich Shield, podéis dejármelo en los comentarios

FUENTE
https://github.com/inopya/display_4digitos_TM1637/blob/master/libreria_modificada_TM1637/TM1637.cpp

Deja un comentario

Información básica sobre protección de datos Ver más

  • Responsable: Tomas Gonzalez.
  • Finalidad:  Moderar los comentarios.
  • Legitimación:  Por consentimiento del interesado.
  • Destinatarios y encargados de tratamiento:  No se ceden o comunican datos a terceros para prestar este servicio.
  • Derechos: Acceder, rectificar y suprimir los datos.
  • Información Adicional: Puede consultar la información detallada en la Política de Privacidad.

error: Content is protected !!

Descubre más desde InfoGonzalez - Blog de formador e informático

Suscríbete ahora para seguir leyendo y obtener acceso al archivo completo.

Seguir leyendo

Este sitio web utiliza cookies, si necesitas más información puedes visitar nuestra política de privacidad    Ver
Privacidad
Creative Commons License
Except where otherwise noted, the content on this site is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.