[jallib] servo problem with 18F25K22

2021-09-10 Thread hans
Hi all,
I am very sorry about the question ... a broken servo wire  inside the 
cable.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jallib+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/6a64c4c6-39e9-48a1-b3a5-75b5e245cf66n%40googlegroups.com.


[jallib] PIC 18F25K22 and servo master

2021-09-10 Thread hans
I am working with a 16K25K22 to use the servo master lib.. I have a nice 
picture on my scope but no reaction on the servo's. Please help.
regards
hans 

--
include 18F25K22

pragma target   clock32_000_000 -- Fosc

pragma target   OSC  INTOSC_NOCLKOUT
pragma target   PLLENdisabled   -- software controlled!
pragma target   PCLKEN   enabled
pragma target   FCMENdisabled
pragma target   IESO disabled
pragma target   PWRTEenabled
pragma target   BROWNOUT disabled
pragma target   WDT  disabled
pragma target   PBADEN   digital
pragma target   MCLR external
pragma target   LVP  disabled
pragma target   XINSTdisabled
pragma target   DEBUGdisabled

OSCCON_IRCF = 0b110 -- 8 MHz
OSCCON_SCS  = 0 -- clock selected by fuses
OSCTUNE_PLLEN   = 1 -- 8 -> 32 MHz with INTOSC  


enable_digital_io()
include delay
-- setup USART 1  to dfplayer
const serial_hw_baudrate = 9600
const bit serial_overflow_discard = false   -- do not allow xmit buffer 
overflow
include serial_hardware
serial_hw_init()

-- setup USART 2 (terminal side)
--const serial_hw2_baudrate =9600
--const bit serial2_overflow_discard = false  -- do not allow xmit 
buffer overflow
--include serial_hardware2
--serial_hw2_init()

var bit RCT = low
include dfplayer
dfplayer_init()
--
 var bit random_downgrade = false
include random

---

-- setup servo pins
alias servo_1 is pin_A0   - oog rechts
alias servo_1_direction   is pin_A0_direction
servo_1_direction = output
--
alias servo_2 is pin_A1  -- oog links
alias servo_2_direction   is pin_A1_direction
servo_2_direction = output
--
alias servo_3 is pin_A2   hoofd L?R
alias servo_3_direction   is pin_A2_direction
servo_3_direction = output
--
alias servo_4 is pin_A3 -- hoofd op/neer
alias servo_4_direction   is pin_A3_direction
servo_4_direction = output
--
alias servo_5 is pin_A5  - onder arm L
alias servo_5_direction   is pin_A5_direction
servo_5_direction = output
--
alias servo_6 is pin_C0 -- boven arm L
alias servo_6_direction   is pin_C0_direction
servo_6_direction = output
--
alias servo_7 is pin_C1 -- schouder L
alias servo_7_direction   is pin_C1_direction
servo_7_direction = output
--
alias servo_8 is pin_C2 -- hand
alias servo_8_direction   is pin_C2_direction
servo_8_direction = output
--
alias motoris pin_C4 -- is de aansturing van de draai
alias motor_direction   is pin_C4_direction
motor_direction = output
motor = low
--
alias spraak   is pin_B2--- actief low naar spraak print
alias spraak_direction   is pin_B2_direction
spraak_direction = output
spraak = HIGH

-- choose min & max servo movment / pulse size
const byte SERVO_MIN   = 50  -- default is 50  (0.5ms min pulse)
const byte SERVO_MAX   = 255 -- default is 255 (2.5ms max pulse)

-- choose pic internal timers
const byte SERVO_USE_TIMER = 0-- timer for servo's 1 to 8
const byte SERVO_9_TO_16_USE_TIMER = 1-- timer for servo's 9 to 16
;const byte SERVO_17_TO_24_USE_TIMER = 3   -- timer for servo's 17 to 24
include servo_rc_master -- include the servo library
servo_init()
-- basic position all servo's -aangepast 26/09
servo_move(118,1)
servo_move(142,2)
servo_move(109,3)
servo_move(39,4)
servo_move(80,5)
servo_move(146,6)
servo_move(93,7)
servo_move(157,8)

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jallib+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/81f1e67e-fb4d-46d6-88ba-69071143087cn%40googlegroups.com.


[jallib] [jallib build] buildbot success in jallib on jallib-standard

2021-09-10 Thread build
Hi guys,

This is buildbot speaking. I have finished a build of jallib-standard on jallib.
Buildslave for this Build: sebbot

Build Reason: 
Build Source Stamp: HEAD
Blamelist: mattschinkel

Build succeeded!
Logs are attached.

sincerely,
 -The Buildbot

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jallib+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/E1mOfqV-0001Nr-6v%40casadeyork.com.
Updating '.':

UU   include/external/storage/sd_card.jal

Updated to revision 3761.

2163 samples to validate...

1116 libraries to validate...

All files validated :)

Environment config

JALLIB_ROOT=/home/mattschinkel/jallib/slave/standard/build

JALLIB_REPOS=/home/mattschinkel/jallib/slave/standard/build/include

JALLIB_SAMPLEDIR=/home/mattschinkel/jallib/slave/standard/build/sample

JALLIB_JALV2=/home/mattschinkel/bin/jalv2

JALLIB_PYTHON=python2.7



Time duration: 353 secs

jal jalv25r5 (compiled Apr  5 2021)

Required parameter to hex is missing!

no source file, use /home/mattschinkel/bin/jalv2 --help for help

Error while compiling file (status=1).

See previous message.

2163 samples to compile...

All samples compile :)

Environment config

JALLIB_ROOT=/home/mattschinkel/jallib/slave/standard/build

JALLIB_REPOS=/home/mattschinkel/jallib/slave/standard/build/include

JALLIB_SAMPLEDIR=/home/mattschinkel/jallib/slave/standard/build/sample

JALLIB_JALV2=/home/mattschinkel/bin/jalv2

JALLIB_PYTHON=python2.7



Time duration: 1775 secs



Re: [jallib] I can't use font8*12?!?

2021-09-10 Thread Rob CJ
Hi Majid,

I had sent you an update of the library yesterday since I already implemented 
this for you and you already shared that it worked. Why this response?

Met vriendelijke groet,
Rob Jansen

From: jallib@googlegroups.com  on behalf of majid ebru 

Sent: Friday, September 10, 2021 8:11:23 AM
To: jallib 
Subject: Re: [jallib] I can't use font8*12?!?

Hi Rob

i read glcd_font.jal and procedure glcd_write_char_pbp().
but i didn't find out.
i am not special
help me more , please

thank you

On Sunday, August 29, 2021 at 6:14:50 PM UTC+4:30 rob...@hotmail.com wrote:
Hi Majid,

You have to study glcd_font.jal which explains the difference between a 
horizontal font and a vertical font (which is a rotated horizontal font).

In glcd_common there is a procedure glcd_write_char_pbp() that writes a font in 
horizontal or vertical direction using pixels. I never tried is.

Kind regards,

Rob


Van: jal...@googlegroups.com  namens majid ebru 

Verzonden: vrijdag 27 augustus 2021 21:14

Aan: jallib 
Onderwerp: Re: [jallib] I can't use font8*12?!?
Ok
How can I draw it (font)

I use Image draw , but I didn't see any thing?!
Help me
I need this font or draw an image ?!
On Wednesday, August 11, 2021 at 10:07:11 PM UTC+4:30 rob...@hotmail.com wrote:
Hi Majid,

No you cannot rotate fonts, at least there is no library that does that for you.

If you want to use a rotated font you have define it (draw it) as a rotated 
font.

Kind regards,

Rob


Van: jal...@googlegroups.com  namens majid ebru 

Verzonden: dinsdag 10 augustus 2021 19:38
Aan: jallib 
Onderwerp: Re: [jallib] I can't use font8*12?!?


Hi to all

I read pdf's files about jal

But I can find any command about rotate ?!

I don't find any sample about font 6*8 that it work correctly!!

Can show me which files I should read those?!

I can't rotate font
On Wednesday, July 28, 2021 at 4:30:12 PM UTC+4:30 Kiste wrote:
Hi Majid,

you see, it would probably need two or three workdays, maybe much more to make 
the characters able to rotate, be it only the 8*12 font, or all fonts, only by 
90 degrees or also by 270 or 180.

Instead of just doing it, explaining all the steps to you would need about 
three times as long.

Noone found the time to do that until now. I presume noone will find three 
times as long a time to not only do it, but teach you to do it.

If you can't find out to do it by yourself, I don't think you can urge someone 
else to do it for you just when you need it to be done, let alone teach you how 
to do it.

If you want to decide what other people do, in this world, you usually have to 
pay them.


Greets,
Kiste

Am Mittwoch, 28. Juli 2021, 12:40:58 MESZ hat majid ebru  
Folgendes geschrieben:





please guide me

On Tuesday, July 27, 2021 at 10:13:36 PM UTC+4:30 majid ebru wrote:
> Hi Rob
>
> I don't findout ?!樂
>
> My program is above and I complie it and I don't see correctly?!
>
> Can you guide me more?!!
>
> Thank you
>
> On Monday, July 26, 2021 at 11:16:29 PM UTC+4:30 rob...@hotmail.com wrote:
>>
>>
>>
>>
>>  Hi Majid,
>>
>>
>>
>>
>>  Make a copy, make the changes, test it and if it works we could add it to 
>> Jallib as an improved version.
>>
>>
>>
>>
>>  It may take you some time to fix it.
>>
>>
>>
>>
>>
>>
>> Met vriendelijke groet,
>>
>> Rob Jansen
>>
>>
>> 
>> From: jal...@googlegroups.com  on behalf of majid 
>> ebru 
>> Sent: Monday, July 26, 2021 8:22:20 PM
>> To: jallib 
>> Subject: Re: [jallib] I can't use font8*12?!?
>>
>>
>>
>>
>> Hi Rob
>> How can I do that?!
>>
>>
>>
>>
>> Kind regards
>>
>>
>>
>>
>> On Monday, July 26, 2021 at 9:13:47 PM UTC+4:30 rob...@hotmail.com wrote:
>>
>>
>>>
>>>
>>>  Hi Majid,
>>>
>>>
>>>
>>>
>>>  Normally a character fits on one row in height when it is at most 8 pixels 
>>> high so that's why it is straight forward to print a font like 5 * 7 or 6 
>>> *8. A 8 * 12 font does not fit on one row (12 pixels instead of 8) and if 
>>> you want to use that font anyway it is rotated but you then also have to 
>>> rotate your LCD.
>>>
>>>
>>>
>>>
>>>  A solution would be to implement the font without rotation but for that - 
>>> if I am correct - the driver needs to be updated.
>>>
>>>
>>>
>>>
>>>  Kind regards,
>>>
>>>
>>> Rob
>>>
>>>
>>>
>>>
>>>
>>> 
>>> Van: jal...@googlegroups.com  namens majid ebru 
>>> 
>>> Verzonden: maandag 26 juli 2021 12:34
>>> Aan: jallib 
>>> Onderwerp: [jallib] I can't use font8*12?!?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Hi to all
>>>
>>>
>>>
>>> I comeback
>>>
>>> Don't worry , everything is ok
>>>
>>> 藍藍藍
>>>
>>>
>>>
>>>
>>> I can't use font 8*12,
>>>
>>> Can someone help and guide me ?!
>>>
>>>
>>>
>>>
>>> --;@main
>>>
>>> include 18f4520
>>>
>>> pragma target clock 8_000_000 -- xtal frequency
>>>
>>> pragma target OSC hs
>>>
>>> pragma target WDT disabled
>>>
>>> pragma target LVP disabled
>>>
>>> enable_digital_io()
>>>