SDFileSystem Version 4.0.9

Post here if you want to announce new wiki modules, projects or articles

Moderators: David Barker, Jerry Messina

skartalov
Posts: 37
Joined: Fri Apr 09, 2010 10:50 am
Location: BULGARIA

Post by skartalov » Sat Apr 10, 2010 9:15 am

Hi Steven,

I got the message:

"Indetifier not declared: spiOscDev64"

when trying to compile your sample programs.

Why is that?

Thanks.

Raistlin
Registered User
Registered User
Posts: 69
Joined: Tue Apr 01, 2008 1:13 pm

Post by Raistlin » Sat Apr 10, 2010 7:43 pm

the way the clock divider is passed to the module has changed in later versions. It is all in the release notes
If you can read this you are too close

skartalov
Posts: 37
Joined: Fri Apr 09, 2010 10:50 am
Location: BULGARIA

HPGL Code

Post by skartalov » Thu Jun 23, 2011 7:09 am

Hi,
what I am trying to do is read an HPGL file, and USART the X,Y coordinates.
The code should omit all the data exept the line starting with PU and PD commands.
As PICBASIC user, it is a bit harder for me to figure out how exactly to write the code in SwordFish.
Until now I can successfuly open the file, but how to read the numbers within, I do not know.
Please, someone help!
Here a sample HPGL code generated from CorelDraw:

IN;
LT;
SP1;
PU103 182;
PD103 20;
LT;
SP1;
PU103 106;
PD100 113;
PD94 116;
PD87 113;
PD84 106;
PD86 98;
PD90 92;
PD96 88;
PD103 86;
PD110 88;
PD116 92;
PD120 98;
PD122 106;
PD120 117;
PD114 127;
PD105 133;
PD94 136;
PD83 133;
PD74 127;
PD68 117;
PD66 106;
PD69 90;
PD77 78;
PD89 69;
PD103 66;
PD118 69;
PD130 78;
PD138 90;
PD140 106;
PD137 125;
PD127 141;
PD112 152;
PD94 156;
PD76 152;
PD61 141;
PD51 125;
PD47 106;
PD52 83;
PD64 64;
PD81 51;
PD103 46;
PD125 51;
PD143 64;
PD155 83;
PD159 106;
PD154 133;
PD140 155;
PD119 170;
PD94 176;
PD68 170;
PD48 155;
PD34 133;
PD28 106;
PD30 90;
PD34 75;
PD50 50;
PD74 32;
PD88 28;
PD103 26;
PD118 28;
PD132 32;
PD156 50;
PD172 75;
PD176 90;
PD178 106;
LT;
SP1;
PU5 199;
PD202 199;
PD202 2;
PD5 2;
PD5 199;
SP0;

Post Reply