Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread Johann Glaser
Hi! Am Freitag, den 09.08.2019, 08:08 -0400 schrieb James Richters: > Hi Hansi, > Thanks for the explanation. > > Here's the python code I’m trying to port over to FPC: > https://github.com/wolfmanjm/kivy-smoothie-host/blob/master/modules/hb04.py > > it uses functions like hid.open, hid.close,

Re: [fpc-pascal] unit GUi creation also usable for visually impaired developers with no sight at all

2019-08-09 Thread Mgr. Janusz Chmiel
Oh it is very promising programmers approach. I Am even dreaming about live Internet radio player written by using Pas2JS. I have analysed included units and I have found Webaudio unit. BUt I Am afraid, that opening live stream with .MP3 live stream and play it from Pascal source by using

Re: [fpc-pascal] FP.exe error in x86_64-Win64

2019-08-09 Thread Jean SUZINEAU
Le 09/08/2019 à 15:39, James Richters a écrit : I am not using libusb in my project yet…  all that is still just in separate test programs.  This is the original version of my project, just compiled

Re: [fpc-pascal] unit GUi creation also usable for visually impaired developers with no sight at all

2019-08-09 Thread Jean SUZINEAU
Le 09/08/2019 à 12:22, Mgr. Janusz Chmiel a écrit : Does somebody of you know about Lazarus compatible Unit, which is able to create Windows GUi with no need to specify object position values in points or in Pixels? Something similar like VCL units have for commercial BOrland Delphi. Or

Re: [fpc-pascal] FP.exe error in x86_64-Win64

2019-08-09 Thread James Richters
I am not using libusb in my project yet… all that is still just in separate test programs. This is the original version of my project, just compiled for 64bits… I had to make some other changes to it. I have never needed to install anything else to get my program to run. I re-compiled it

Re: [fpc-pascal] FP.exe error in x86_64-Win64

2019-08-09 Thread Jean SUZINEAU
Le 09/08/2019 à 14:19, James Richters a écrit : Now I have a new problem.  I am able to successfully compile and run my project with the text IDE if I use the trunk version of FPC, and I can run the

Re: [fpc-pascal] unit GUi creation also usable for visually impaired developers with no sight at all

2019-08-09 Thread fredvs
Hello. There is ideU, a child of mseide that is voice-assisted and gives also the position of the mouse by voice. https://github.com/fredvs/ideU/releases Fre:D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/

Re: [fpc-pascal] FP.exe error in x86_64-Win64

2019-08-09 Thread James Richters
Now I have a new problem. I am able to successfully compile and run my project with the text IDE if I use the trunk version of FPC, and I can run the resulting exe just fine on the computer I compiled it on, but when I run it on one of my other computers, one that I was always able to run the

Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread James Richters
Hi Hansi, Thanks for the explanation. Here's the python code I’m trying to port over to FPC: https://github.com/wolfmanjm/kivy-smoothie-host/blob/master/modules/hb04.py it uses functions like hid.open, hid.close, hid.read, hid.write, and hid.send_feature_report I'm trying to figure out how

Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread Johann Glaser
Hi! Just a quick reply while at work, I'll reply to all EMails in the evening. First of all: Thanks for finding the bug with the index variable I vs. J. I'll fix that in the evening. Secondly: You are correct, the "EZ-USB" is a specific chip family by Cypress, e.g., AN2131, without Flash/ROM

[fpc-pascal] unit GUi creation also usable for visually impaired developers with no sight at all

2019-08-09 Thread Mgr. Janusz Chmiel
Does somebody of you know about Lazarus compatible Unit, which is able to create Windows GUi with no need to specify object position values in points or in Pixels? Something similar like VCL units have for commercial BOrland Delphi. Or unfortunately, there is no such unit available for Free

Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread James Richters
Maybe I am going down the wrong path trying to get test_arduino_with_bmp280.pas to work with my device... I think I am confusing easyusb with easyhid which is what is used to communicate with the device in the python code I am trying to use. It looks like easyusb is to send firmware to a

Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread James Richters
I had "Use STATIC in objects" turned on in compiler setings.. once I turned that off I was able to compile libusbutil.pas successfully. Now when I try to run it though, I am getting :Couldn't connect to device: Access violation I don't know why. I don't really know what I am doing.. but

Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread James Richters
I am compiling with the Text IDE, and I set it up with the same settings I was using with the 32bit version… and yes I did turn on Range checking, so that explains why we didn’t notice it before. James From: fpc-pascal On Behalf Of Jean SUZINEAU Sent: Friday, August 9, 2019 12:34 AM

Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread Jean SUZINEAU
Le 09/08/2019 à 06:33, Jean SUZINEAU a écrit : Very often in Windows system functions you have to deal with records with declared with a length of 1 and the real length stored a few bytes before in the record. Oops, not with