BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Chris/

Pages: [1]
1
Discussion - Cleo / Re: CleO External Flash Fail
« on: March 12, 2019, 10:28:05 AM »
Hi,

I am currently have 4 screens where this has occurred. I'm still not sure what the trigger is.

Do you want me to send them to you for inspection?

Thanks,

Chris

2
Discussion - Cleo / Re: CleO External Flash Fail
« on: December 17, 2018, 03:51:00 PM »
Hi,

The only difference is where i sit.

Every time this has happened i have been sat on my sofa whereas usually i am sat at a desk (where it has never occurred).

Could it been some sort of static issue?

It has happened to two CleO35 now.

Thanks,

Chris

3
Discussion - Cleo / Re: CleO file write append to new line
« on: December 13, 2018, 08:08:43 AM »
I guess i should have read through the filing system tutorials better!

Here's a solution to this saving it into a .csv file:

Code: [Select]
#include <SPI.h>
#include <CleO.h>


char STR1[] = "A,B,C,D,E,F,G\n";
char STR2[] = "H,H,H,H,H,H,H\n";
char STR3[] = "I,I,I,I,I,I,I\n";
int16_t actual;
int16_t f;
uint32_t pointer = 0;


void setup() {
 
  CleO.begin();
 
  f = CleO.FOpen("test.csv", FILE_OPEN_ALWAYS | FILE_WRITE);
  while (!CleO.FEOF(f)) {                                      // Moves pointer position through the file until end of file is found
    CleO.FSeek(f, pointer);
    pointer++;
  }
  CleO.FWrite(f, strlen(STR1) + 1, (uint8_t*)STR1, actual);
  CleO.FClose(f);

  CleO.FOpen("test.csv", FILE_OPEN_ALWAYS | FILE_WRITE);
  while (!CleO.FEOF(f)) {
    CleO.FSeek(f, pointer);
    pointer++;
  }
  CleO.FWrite(f, strlen(STR2) + 1, (uint8_t*)STR2, actual);
  CleO.FClose(f);
 
  CleO.FOpen("test.csv", FILE_OPEN_ALWAYS | FILE_WRITE);
  while (!CleO.FEOF(f)) {
    CleO.FSeek(f, pointer);
    pointer++;
  }
  CleO.FWrite(f, strlen(STR3) + 1, (uint8_t*)STR3, actual);
  CleO.FClose(f);


}

void loop() {}

4
Discussion - Cleo / CleO file write append to new line
« on: December 10, 2018, 03:54:20 PM »
Hi,

I'm trying to append some information to a new line within the same .txt file using the CleO file system however i seem to just be overwriting the same line each time.

Code: [Select]
#include <SPI.h>
#include <CleO.h>

void setup() {
  char STR1[] = "ABCDEFG";
  char STR2[] = "HHHHHHH";
  char STR3[] = "IIIIIII";
  int16_t actual;

  CleO.begin();

  int16_t f = CleO.FOpen("test.txt", FILE_OPEN_EXISTING | FILE_WRITE);
  CleO.FWrite(f, strlen(STR1) + 1, (uint8_t*)STR1, actual);
  CleO.FClose(f);

  CleO.FOpen("test.txt", FILE_OPEN_EXISTING | FILE_WRITE);
  CleO.FWrite(f, strlen(STR2) + 1, (uint8_t*)STR2, actual);
  CleO.FClose(f);

  CleO.FOpen("test.txt", FILE_OPEN_EXISTING | FILE_WRITE);
  CleO.FWrite(f, strlen(STR3) + 1, (uint8_t*)STR3, actual);
  CleO.FClose(f);
}

void loop() {}

I'm after a file that gives:

  ABCDEFG
  HHHHHHH
  IIIIIII

but the code above gives:

IIIIIII

Is there a way of achieving what I'm after?

thanks,

Chris

5
Discussion - Cleo / Re: CleO External Flash Fail
« on: December 10, 2018, 07:37:27 AM »
Just happened to another CleO!

Any thoughts?

6
Discussion - Cleo / CleO External Flash Fail
« on: December 04, 2018, 10:58:54 PM »
Hi,

Its happened a couple of times now where the eflash has failed and left me without the cleo picture on the splash screen and then an error trap when its failed to load Icons in.

Is this a know fault or am i doing something wrong?


This is a cut down version of how i call the icons:

Code: [Select]
int16_t Settings;     

void setup() {
Settings = CleO.LoadIcon("@Icons/m36.ftico", 707);     
}
void loop() {
CleO.Bitmap(Settings, (0.005 * SCREEN_WIDTH), (0.225 * SCREEN_HEIGHT));
}

Thanks,

Chris

Pages: [1]