We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
posted on 2014/02/10 06:14:56 PM CET
Hi,
Could someone please help? I require a MMC/SD library that does NOT use hardware SPI but Software SPI with fat32 file system
i could do it myself if there was some way to edit the existing library?
Thank you in advance
Best Regards
Jody
posted on 2014/02/10 04:53:13 PM CET
MikroE TFT drivers package lack the HX8238A and HX8238D drivers.
It have found that those drivers are very popular for 3.5 inch displays.
I wonder if someone can add those drivers to the compiler.
My research revealed that in the TFT_Defs only three functions are needed for each driver:
for example for the HX8238A you have to write the following functions:
TFT_Reset_HX8238A()
TFT_Init_HX8238A(width, heigh)
TFT_Init_HX8238D_Custom(with, height)
Writing those function means reading the datasheet and writing to the appropriate registers the right values.
The code should be added to the file __Lib_TFT_Defs.c that might be found in the MikroC installation folder in the Uses sub folder. the file contains the definitions of those functions for different display drivers.
Since I lack of a display with HX8238D but I know that I will need it shortly, I am willing to pay for this task and let the whole community of MikroE enjoy the library.
if you can do it and are interested please PM me from the forum.
posted on 2014/02/09 08:55:10 PM CET
Hi!
i have i2c ds1306 oled 128x64 (CRIUS CO-16 OLED Display Module).
i need display driver for mikroC
Can someone help me write a code?
best regards
kursad
posted on 2014/02/06 08:50:09 PM CET
I am using PIC18F4550 and temp sensor LM35 to read both '-' and '+' temperature. I am using Mikrobasic pro for writing the code.can anyone help me to correct the code that i have written...please..?
dim LCD_RS as sbit at LATB4_bit
LCD_EN as sbit at LATB5_bit
LCD_D4 as sbit at LATB0_bit
LCD_D5 as sbit at LATB1_bit
LCD_D6 as sbit at LATB2_bit
LCD_D7 as sbit at LATB3_bit
dim LCD_RS_Direction as sbit at TRISB4_bit
LCD_EN_Direction as sbit at TRISB5_bit
LCD_D4_Direction as sbit at TRISB0_bit
LCD_D5_Direction as sbit at TRISB1_bit
LCD_D6_Direction as sbit at TRISB2_bit
LCD_D7_Direction as sbit at TRISB3_bit
dim R_S as word
dim T as word
dim V as byte
dim temp as string[15]
main:
ADCON0 = 0x00
ADCON1 = 0x00
ADCON2 = 0x00
ADRESL = 1
ADRESH = 0
PORTA=$01 'Initialize port A to 0
PORTB=0 'Initialize port B to $01
TRISA3_bit = 1 ' Configure RA3 pin as input
TRISB=0 ' port B is output
ADC_Init() ' Initialize ADC
Lcd_Init() ' Initialize LCD
Lcd_Cmd(_LCD_CLEAR) ' Clear display
Lcd_Cmd(_LCD_CURSOR_OFF) ' Cursor off
Lcd_Out(1, 1, "Temperature :")
Lcd_Chr(2,8,223) 'char code for degree
Lcd_Chr(2,9,"C") ' Display "C" for Celsius
R_S = 0
While TRUE
R_S= ADC_Get_Sample(3) 'Get 10-bit results of AD conversion
V=R_S*(5/1024) 'convert digital reading to voltage,verf=5 V
T=V*100 'converting this voltage to Celsius, Since sensor's sensitivity is 10mV/C
wordToStr(T,temp)
temp[4] = 0
Lcd_out(2,3, temp) ' Write string in second row
delay_ms(500)
wend
end.
posted on 2014/02/04 02:50:02 PM CET
Hi!
I have been trying to play music from an SD card with no succes.
I am using PIC f1845k22.
Can someone help me write a code?