Search found 64 matches

by Askjerry
Wednesday 29th November 2023 12:03am
Forum: The Gambas IDE
Topic: Gambas -> USB -> DragonRise USB Joystick -> Use
Replies: 7
Views: 13148

Re: Gambas -> USB -> DragonRise USB Joystick -> Use

I find it hard to believe that nobody has any kind of library to allow the use of a joystick... I mean... they are incredibly useful for input. :shock:

Wait... I just found this... https://forum.gambas.one/viewtopic.php?p=5475

I'm going to download that and see if I can figure it out.

Jerry
by Askjerry
Monday 27th November 2023 4:47am
Forum: The Gambas IDE
Topic: Gambas -> USB -> DragonRise USB Joystick -> Use
Replies: 7
Views: 13148

Gambas -> USB -> DragonRise USB Joystick -> Use

I have used the DragonRise USB Encoder for several LinuxCNC projects so I know it works well with Linux. I would like to use it with the Raspberry Pi and possibly with a laptop to provide joystick input and/or 12 button inputs for different uses. When plugged into the USB port it can be found via te...
by Askjerry
Tuesday 11th July 2023 3:33pm
Forum: Component
Topic: Gambas + PIGPIO + I2C + ADS1115 A/D Chip
Replies: 16
Views: 17917

Re: Gambas + PIGPIO + I2C + ADS1115 A/D Chip

I wanted to do an update... calculating the HEX numbers to send to the chip has been a pain in the posterior... so I made a helpful spreadsheet to figure them out... it does all the work for you. For an example, I wanted to configure the chip to use Port 0 to Port 1 in differential mode, then connec...
by Askjerry
Sunday 2nd July 2023 11:37pm
Forum: Component
Topic: DrawingArea PAINT.ROTATE(RAD(x))
Replies: 8
Views: 7241

Re: DrawingArea PAINT.ROTATE(RAD(x))

I've got it now... just took getting my head around it. ' Gambas class file Public Sub DRW_1_Draw() Dim x, y As Integer ' DEFINE CENTER OF ROTATION x = DRW_1.Width / 2 y = DRW_1.Height / 2 With Paint ' SET CENTER POINT .Translate(x, y) ' ROTATE THE WHOLE DRAWING ENVIONMENT .rotate(Rad(Slider3.value)...
by Askjerry
Sunday 2nd July 2023 11:02pm
Forum: Component
Topic: DrawingArea PAINT.ROTATE(RAD(x))
Replies: 8
Views: 7241

Re: DrawingArea PAINT.ROTATE(RAD(x))

I'm trying to revisit this and try it out... but I'm getting an error n line 62. Ambiguous Expression. Please use brackets in FMain.class : 62 I think this is close... certainly less than all the math I was using to locate every graphics point. I also just started another thread because I think ther...
by Askjerry
Sunday 2nd July 2023 8:23pm
Forum: Component
Topic: PrintMatrix
Replies: 0
Views: 11855

PrintMatrix

Hey folks, I'm making some gauges to track realtime data in my program, I place an SVG image down, then overlay it with a DrawingArea. By drawing the pointer on this layer, I have a really nice looking gauge. To draw a basic point I would do something like this... Public Sub DRW_1_Draw() Dim x, y As...
by Askjerry
Thursday 6th October 2022 4:43am
Forum: Component
Topic: Gambas + PIGPIO + I2C + ADS1115 A/D Chip
Replies: 16
Views: 17917

Re: Gambas + PIGPIO + I2C + ADS1115 A/D Chip

AFTER 5 MONTHS I GOT IT!!!! Public Sub BTN_POLL_ADS_P1_Click() intReply = i2cOpen(1, DEVICE_ADDRESS, 0) If intReply = 0 Then DSP_01.text = "OPEN" Else DSP_01.text = "ERROR" '----------------------------------------------------------------------------- ' For all word values below...
by Askjerry
Wednesday 5th October 2022 2:11am
Forum: Component
Topic: Gambas + PIGPIO + I2C + ADS1115 A/D Chip
Replies: 16
Views: 17917

Re: Gambas + PIGPIO + I2C + ADS1115 A/D Chip

With the help of Guido Lutterbach I am about 85% able to get this chip to work. He sent me a python code which works and uses no fancy library to function. http://smartypies.com/projects/ads1115-with-raspberrypi-and-python/ads1115runner/ I was able to understand enough of it that I am now getting ch...
by Askjerry
Thursday 11th August 2022 7:56am
Forum: Component
Topic: Gambas + PIGPIO + I2C + ADS1115 A/D Chip
Replies: 16
Views: 17917

Re: Gambas + PIGPIO + I2C + ADS1115 A/D Chip

Still no reply... wow... I really want to get this project moving. It looks like my option is to program an Atmel AVR in BASCOM and then read it via SPI... that is sort of Rube Goldberg... and I didn't want to interface one chip with another... because my subscribers are likely not going to have BAS...
by Askjerry
Sunday 24th July 2022 2:16pm
Forum: Beginners
Topic: Using DrawArea - Simplified
Replies: 19
Views: 6226

Re: Using DrawArea - Simplified

BruceSteers... I'll tinker with this.
Thank you!