Search found 175 matches

by cobra1
Tue Jun 21, 2011 1:28 am
Forum: Flowcode V2 & V3
Topic: Temperature reading 0.1 resolution
Replies: 5
Views: 5848

Re: Temperature reading 0.1 resolution

I looked at that link before, wasnt much use im afraid. What im trying to do is convert my int value to a float, then to a string to display on screen to 1 decimal place. so in the calculations i do, FLOAT = SAMPLE Then in string manipulation, STRING = FloatToString$(FLOAT) All i get on the screen i...
by cobra1
Mon Jun 20, 2011 9:28 pm
Forum: Flowcode V2 & V3
Topic: Temperature reading 0.1 resolution
Replies: 5
Views: 5848

Temperature reading 0.1 resolution

Hi, I would like to be able to display my temperatures like 32.1C, 32.4C as apposed to just 32C, 33C. I am using ADC and realtime calculations, i end up with my real temperature value to the closest whole number. Im doing this: (TEMPERATURE = SAMPLE / 3), This gives me my single number value. How do...
by cobra1
Thu Jun 16, 2011 9:06 pm
Forum: Flowcode V2 & V3
Topic: Flowcode v5
Replies: 7
Views: 7185

Re: Flowcode v5

whats new for V5??
by cobra1
Tue May 24, 2011 7:44 pm
Forum: Flowcode V2 & V3
Topic: Comparing Strings
Replies: 2
Views: 3544

Re: Comparing Strings

Hi Martin,

Thank you for the link, that works spot on for me now.
by cobra1
Tue May 24, 2011 6:44 pm
Forum: Flowcode V2 & V3
Topic: Comparing Strings
Replies: 2
Views: 3544

Comparing Strings

Hi, i have 2 strings that i would like to compare, The first string called "in_string" is the data being received, in that string is 4 characters, e.g "STID" The second string is called "STRING" and is in a string manipulation box, STRING = "STID" OK, so i send my 4 characters STID and it stores the...
by cobra1
Fri Apr 08, 2011 3:54 pm
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

I have tried modifying the code i was sent to go with the custom.c file.

I managed to get the code to compile and downloaded to the pic, the line was showing up but it was 8 pixels thick and still had gaps and random pixels around it.
by cobra1
Fri Apr 08, 2011 10:37 am
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

hi

I tried that little change and its still the same as before.

whats the rest of that code about where he writes to the ram etc
by cobra1
Fri Apr 08, 2011 9:40 am
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

Ben, Iv sent you a PM
by cobra1
Thu Apr 07, 2011 3:35 pm
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

hi,

It doesnt matter what i do to it, it doesnt display correctly

plotting a pixel only works on the top line, after that the pixel location is wrong,

when printing a number ot a string, i just get a line,

The box was the closest i had to doing something it should
by cobra1
Thu Apr 07, 2011 1:54 pm
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

OK, I have gone through pages 41-42, and checked it against the code. void MX_GotoXY(char x, char y) { char page, columnl, columnh; page = (y / 8) | 0xB0; ****correct**** columnh = (x >> 4) | 0x10; ****correct**** columnl = x & 0x0F; ****In the datasheet this says it should be 0x00, when i put that ...
by cobra1
Thu Apr 07, 2011 1:19 pm
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

Ok no problem,

If it helps the st7565 is a COG controller so the lcd will have a little chip under it surrounded in silicone

Is there anywhere else in the code i can look to solve this problem?
by cobra1
Thu Apr 07, 2011 1:07 pm
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

hi ben

When making this change instead of the box i get 3 lines at the top and loads of scattered pixels
by cobra1
Thu Apr 07, 2011 12:41 pm
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

ok, more problems, when drawing a box to fill the screen my coordinates are 0,0,127,63 (this works as it should) when putting a 1 pixel border around the box i use 1,1,125,61 (the 1,1 is correct, but the 125,61 should be 126,62) so its 1 pixel out when putting a 2 pixel border around the box i use 2...
by cobra1
Thu Apr 07, 2011 11:40 am
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

Iv just been going through the forum looking for some inspiration when i came across this

http://www.matrixmultimedia.com/mmforum ... =29&t=8035

this is pretty much whats happening to me, was this ever figured out??
by cobra1
Thu Apr 07, 2011 9:22 am
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

Hi, i have just noticed that my chipset it a "ST7565R-G"

will this cause a problem or should it work ok, i cant find a datasheet with the G extension

Dont suppose you know what lcd you used when testing this code??
by cobra1
Wed Apr 06, 2011 11:31 pm
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

A quick update, I have now got the LCD to initialise, i am using the speed test file. There was a line missing to switch the lcd on, I can see the X on the LCD corner to corner, but the lines look like \\\\\ they are not connected and are not in the right place, but i can see it flashing on and off ...
by cobra1
Wed Apr 06, 2011 10:26 am
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

Re: ST7565 LCD DISPLAY

Hi Benj,

Im using a 19.6608Mhz crystal, i have also verified that the code is running with a blinking led.

I have LVP disabled and have checked I/O using leds on my lines, all seems in order.

I will try the nop instructions, is there anything else here that might come into play?
by cobra1
Tue Apr 05, 2011 9:43 pm
Forum: Flowcode V2 & V3
Topic: ST7565 LCD DISPLAY
Replies: 18
Views: 14441

ST7565 LCD DISPLAY

Hi, im playing with the ST7565 custom file, Problem is i cant seem to get it to do anything. Just a blank screen, do you by any chance have the schematic you used when testing this file?? I have tried the c86 pin high and low and also the P/S pin high and low, but nothing. I have set the custom file...
by cobra1
Sun Feb 06, 2011 2:26 pm
Forum: Flowcode V2 & V3
Topic: Capacitive Touch PIC16f726
Replies: 4
Views: 5145

Re: Capacitive Touch PIC16f726

just been reading that this can be done using adc, using the internal capacitor.

Anyone got any idea how to make this work in flowcode??
by cobra1
Sun Feb 06, 2011 2:10 pm
Forum: Flowcode V2 & V3
Topic: Capacitive Touch PIC16f726
Replies: 4
Views: 5145

Re: Capacitive Touch PIC16f726

V3 doesnt have the 726, but if i know i can make it work on V4 then i would probably buy v4 to do the job on,

I have seen other people use chips like 16f610 and 16f887, but i dont understand how they do it.
by cobra1
Sun Feb 06, 2011 11:49 am
Forum: Flowcode V2 & V3
Topic: Capacitive Touch PIC16f726
Replies: 4
Views: 5145

Capacitive Touch PIC16f726

Hi Guys

I was just looking for a replacement to my QT320 IC, i came across the PIC16F726, this pic has a capacitive sense module built in.

Has anyone ever used flowcode to use this feature??

Can flowcode even be used to make this feature work?? I need to 4 keys to replace what i have already.
by cobra1
Thu Jan 13, 2011 9:00 pm
Forum: Flowcode V2 & V3
Topic: Help with pic18f4685 + LCD
Replies: 8
Views: 6652

Re: Help with pic18f4685 + LCD

dont worry i figured it out, in the custom.c file im using it says the following: /*Macro_LCD_Print_Number_Start*/ char string_length; if (Number < -10000 ) string_length = 6; else if(Number > 10000 || Number < -1000) string_length = 5; else if(Number > 1000 || Number < -100) string_length = 4; else...
by cobra1
Thu Jan 13, 2011 8:16 pm
Forum: Flowcode V2 & V3
Topic: Help with pic18f4685 + LCD
Replies: 8
Views: 6652

Re: Help with pic18f4685 + LCD

Hi Benj, The image might be a bit more than i can do at the moment. Think ill just draw the image using line command. I am having another tiny problem, when creating variables to make a number increase or decrease, the number displays ok, but when it gets to 10 it just displays a 1 and for 100 it di...
by cobra1
Wed Jan 12, 2011 7:00 pm
Forum: Flowcode V2 & V3
Topic: Display an image on LCD
Replies: 1
Views: 2967

Display an image on LCD

Using a KS0108 LCD and also a PIC 18f4685

Can flowcode be used to convert a Bmp or Jpg to show on the LCD?

If it can does anyone know how??

I can draw the image using loads of draw line commands but this would become a major headache after a while
by cobra1
Wed Jan 12, 2011 5:58 pm
Forum: Flowcode V2 & V3
Topic: Help with pic18f4685 + LCD
Replies: 8
Views: 6652

Re: Help with pic18f4685 + LCD

ok narrowed this down a bit more, learning more and more every day. this is what i think these mean... adcon0 = 0x3C; (set all ADC to unassigned) adcon1 = 0x0F; (set all pins to Digital I/O cmcon = 0x07; ( turn off comparator) just to see which was causing the problem i deleted them one by one from ...