Search found 3469 matches

by TJF
Jul 10, 2019 4:22
Forum: Projects
Topic: Include Digger
Replies: 44
Views: 5763

Re: Include Digger

I love support for large projects like this. It helps everyone, and shows that FB is a serious tool. AFAICS this project provides a subset of the fbdoc features. And fbdoc is ⋅  documented (self-generating docs for Doxygen backend) ⋅  cross-platform ⋅  a text tool that...
by TJF
Jul 09, 2019 5:00
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57262

Re: libpruio (BB D/A - I/O fast and easy)

You're welcome! In RB mode you can synchronize the second PRU in the same way as synchronizing the ARM: observe DRam[0], which is address 0x2000 for the second PRU. Note: that address is used for each (pinmuxing) operation, and reset to 0 (zero) afterwards: ⋅  First finish all configuratio...
by TJF
Jul 08, 2019 14:21
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57262

Re: libpruio (BB D/A - I/O fast and easy)

Hi tenko, welcome to the forum! Sorry, there's no feature for mixed (GPIO/ADC) data in the ring buffer. This'd lead to complex code for data readings. (Some users are overhelmed by only reading the ADC values.) Anyhow, as you mentioned the Mix member variable serves all GPIO states at one GPIO SS: 3...
by TJF
Jul 05, 2019 19:31
Forum: Libraries
Topic: python experiment
Replies: 33
Views: 910

Re: python experiment

Also you can create a wrapper that python can use to call your FB functions. Really it's all there in the API. Been years since I last did it, but I have done it before in C. There are some tutorials (written in C of course) for using the Python C API on the main web site. In my libpruio project I ...
by TJF
Jun 28, 2019 17:44
Forum: General
Topic: smart code formatter
Replies: 9
Views: 458

Re: smart code formatter

Geany has a feature to replace tabs by spaces and vice versa, asking for the tab width before operation. It also supports addaption of line ends. Find the features in the 'document' menu.

And it supports regular expressions for search/replace.

Regards
by TJF
Jun 28, 2019 17:34
Forum: Community Discussion
Topic: any free BASIC for web/ios/android
Replies: 10
Views: 850

Re: any free BASIC for web/ios/android

Hi! so my question is, is there any product-read, free BASIC which can write web app( for example, html5), ios or android? thanks This description isn't very precise. Perhaps there is a further solution: develop a standard GTK GUI app and run it on the server with GDK-broadway backend . Then connect...
by TJF
Jun 10, 2019 12:15
Forum: Projects
Topic: Fb minimal GUI
Replies: 11
Views: 1347

Re: Fb minimal GUI

Hi Luxan! I'm having to assume that libglade is valid on newer distributions ; I'm using Ubuntu 14.04 as the development environment as newer versions don't have a glade that utilizes libglade. libglade is obsolete. There's now support on newer systems. Glade3 doesn't support it any more. Today, it ...
by TJF
Jun 10, 2019 11:53
Forum: Projects
Topic: GladeToBac (Glade to FreeBasic code sketcher)
Replies: 11
Views: 3746

New on GitHub: GladeToBac (Glade to FreeBasic code sketcher)

The source code is now hosted at GitHub. Current version is 3.2.2:
  • ready for 64 systems
  • requires Gtk-3.10 minimum

[Edit]Typo fixed in link.[/Edit]
by TJF
Jun 01, 2019 11:16
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1459

Re: variadic functions and argument lists in fbc

[Edit] This post is obsolete now, since the previous changed. [/Edit] Hi coderJeff! Your code doesn't compile for STRING and UDTs. This statement is invalid: cptr(byte ptr, @@arg) Do you mean PEEK(BYTE PTR, CPTR(BYTE PTR, @arg)) And what about UDTs with a length smaller or eq...
by TJF
May 31, 2019 14:50
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1459

Re: variadic functions and argument lists in fbc

Since my Gir headers should work with different fbc versions, I implemented #IF __FB_VER_MAJOR__ >= 1 AND __FB_VER_MINOR__ >= 07 TYPE AS CVA_LIST va_list #ELSE TYPE AS ANY PTR va_list #ENDIF Perhaps similar code is sufficient in crt/stdarg.bi , at least for a certain transition stage. Regards
by TJF
May 31, 2019 14:30
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1459

Re: variadic functions and argument lists in fbc

Stooooppppp! The linker is searching for 32-bit binaries on a 64-bit system. (I also tried option -arch 64 to no avail.) Please excuse me, my fault! I removed the option -arch 32 from the compile flags, but forgot to remove it from the linker flags. It's compiling and running well with the adaption ...
by TJF
May 31, 2019 14:07
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1459

Re: variadic functions and argument lists in fbc

In https://github.com/DTJF/gir_headers/blob/master/Gir/_GirToBac-0.0.bi#L21 Try: type as cva_list va_list Unless you already di that, I don't know if that's the only place. Sure, that's the only place. When I adapt that file only I get freebasic/crt/stdarg.bi(12) error 4: Duplicated definit...
by TJF
May 31, 2019 11:51
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1459

Re: variadic functions and argument lists in fbc

Hi coderJeff, thanks for the anwser! Do you have a freebasic example we can work with? Sure, ie. look at line 253 . You can find similar code in each of the projects objects. The ellipsis allows passing mutiple arguments to _some_action( obj, "PROP1', "VALUE, "PROP2", 123 ). Not ...
by TJF
May 30, 2019 18:57
Forum: Libraries
Topic: Header updates for Gtk-3.0 and others
Replies: 2
Views: 501

Re: Header for Gtk-4.0

Just uploaded an up-date:

* improved GLib and GObject macros
* Gtk-4.0

Gtk-4.0 isn't released yet, but for those who want to test I created experimental headers.

Regards
by TJF
May 29, 2019 20:32
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57262

Hi Dinosaur! The manual quotes that: The QSRC bits 14 & 15 in QDECCTL register neeeds to be set to 1h for Direction Count mode. However there does not appear to be any way to do that (within the library). io->PwmSS->Conf(_X_)->QDECCTL = ... , where _X_ is the number of the related subsys...

Go to advanced search