Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:27 26 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoMite/WebMite/PicoMiteVGA - please post any know manual issues here

     Page 3 of 5    
Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 12:28am 13 Dec 2023
Copy link to clipboard 
Print this post

Have not found a description in the manual of the difference between OPTION LCDPANEL VIRTUAL_M and OPTION LCDPANEL VIRTUAL_C.
_M = Monochrome, 640 x 480 (= VGA Mode 1)
_C = Colour, 4bit 320 x 240 (= VGA Mode 2)
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 896
Posted: 04:10am 13 Dec 2023
Copy link to clipboard 
Print this post

This from the previous beta thread.

  disco4now said  Here are some notes for using the new Regular Expression options.



MMBasic Regex Syntax used in INSTR and LINSTR functions.

The alternate forms of the INSTR() and LINSTR() functions can take a regular expression as the search pattern in the Picomites from V5.07.08b6.
The alternate form of the commands are:

 INSTR([start],text$, search$ [,size])
 LINSTR(text%(),search$ [,start] [,size]

In both cases specifying the size parameter causes the firmware to interpret the search string as a regular expression. The size parameter is a floatingpoint variable that is used by the firmware to return the size of a matching string. If the variable doesn't exist it is created. As implemented in MMBasic you need to apply the returned start and size values to the MID$ function to extract the matched string. e.g.
IF start THEN match$=MID$(text$,start,size) ELSE match$=”” ENDIF

The library used for the regular expressions “implements POSIX draft P1003.2/D11.2, except for some of the internationalization features”. See See  http://mirror.math.princeton.edu/pub/oldlinux/Linux.old/Ref-docs/POSIX/all.pdf section 2.8 for details of constructing Regular Expressions or other online tutorials if you are not familiar with them.

The syntax of regular expressions can vary slightly with the various implementations. This document is a summary of the syntax and supported operations used in the MMBasic implementation.

Anchors
^    Start of string
$    End of string
\b  Word Boundary
\B  Not a word boundary
\<  Start of word
\>  End of  word

Qualifiers
*          0 or more (not escaped)
\+         1 or more
\?          0 or 1
\{3\}     Exactly 3
\{3,\}   3 or more
\{3,5\} 3,4 or 5

Groups and Ranges
(a\|b)      a or b
\(…\)     group
[abc]      Range (a or b or c)
[^abc]    Not (a or b or c]
[a-q]       lower case letters a to q
[A-Q]    upper case letters A to Q
[0-7]      Digits from 0 to 7

Escapes Required to Match Normal Characters
\^     to match ^   (caret)
\.      to match .   (dot)
\*     to match *  (asterix)
\$     to match $   (dollar)
\[      to match  [   (left bracket)
\\      to match \   (backslash)

Escapes with Special Functions
\+  See Quantifiers
\?  See Quantifiers
\{  See Quantifiers
\}  See Quantifiers
\|   See Groups and Ranges
\(   See Groups and Ranges
\)   See Groups and Ranges
\w  See Character Classes

Character Classes
\w              digits,letters and _                                              
[:word:]     digits,letters and _                                              
[:upper:]    Upper case letters_                                              
[:lower:]    Lower case letters_                                              
[:alpha:]    All  letters                                            
[:alnum:]   Digits and  letters                                            
[:digit:]      Digits
[:xdigit:]    Hexidecimal digits
[:punct:]    Puntuation
[:blank:]    Space and tab
[:space:]    Blank charaters
[:cntrl:]      Control charaters
[:graph:]    Printed characters
[:print:]      Printed chars and spaces

Example expression to match an IP Address which is contained within a word boundary.
    "\<[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\>"


  matherp said  Thanks for the documentation. We will include it in the next manual.

Another good use is to substitute sub-strings in strings using the new flexibility in the MID$ command

e.g.



Latest F4 Latest H7
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 896
Posted: 02:32am 14 Dec 2023
Copy link to clipboard 
Print this post

Page 51
BackLight FREQUENCY NOW 50KHZ (except for ILI9488W I think)



Backlight Control
For the ILI9163, ILI9341, ST7735, ST7735S, SSD1331, ST7789, ILI9481, ILI9488, ILI9488W, ST7789_135
ILI9341_8 and ST7789_320 displays an optional parameter ‘, backlight’ can be added to the end of the
configuration parameters which specifies a pin to use to control the brightness of the backlight. This will setup a
PWM output on that pin with a frequency of 1KHz  and an initial duty cycle of 99%.
You can then use the BACKLIGHT command to change the brightness between 0 and 100%. The PWM channel
is blocked for normal PWM use and must not conflict with the PWM channel that may be set up for audio.


Latest F4 Latest H7
 
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 03:36am 27 Dec 2023
Copy link to clipboard 
Print this post

Hi All

Has the function SETTICK PAUSE been removed  ?
Don't seem to be able to make it work in anyway.
Keep getting "Pause not declared"

Tried:
SetTick Pause 50,My_Int,1
SetTick  and then Later SetTick Resume

In the end I did:
SetTick 0,0,1
and then after delay
SetTick 60000,My_Int,1
Regards
Hervey Bay Qld.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6098
Posted: 03:47am 27 Dec 2023
Copy link to clipboard 
Print this post

AS per the manual:
 SETTICK 100,scrollNow,2
 SETTICK PAUSE,scrollNow,2
 PAUSE 500
 SETTICK RESUME,scrollNow,2
 


Works for me on WEBmite V5.08.00RC1

Jim
VK7JH
MMedit   MMBasic Help
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3801
Posted: 08:36am 27 Dec 2023
Copy link to clipboard 
Print this post

  Dinosaur said  Hi All

Has the function SETTICK PAUSE been removed  ?
Don't seem to be able to make it work in anyway.
Keep getting "Pause not declared"

Tried:
SetTick Pause 50,My_Int,1
SetTick  and then Later SetTick Resume

In the end I did:
SetTick 0,0,1
and then after delay
SetTick 60000,My_Int,1

Your best bet is to make a short runnable sample showing the problem and post it.

John
 
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 09:03am 27 Dec 2023
Copy link to clipboard 
Print this post

Hi All

Made the same mistake again.
Comma after PAUSE  
Regards
Hervey Bay Qld.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6098
Posted: 09:26am 27 Dec 2023
Copy link to clipboard 
Print this post

  Dinosaur said  Hi All

Made the same mistake again.
Comma after PAUSE  


No, The mistake was including the 50 after PAUSE
VK7JH
MMedit   MMBasic Help
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 07:32am 02 Jan 2024
Copy link to clipboard 
Print this post

Minor point for the RTC chapter.
RTC SETTIME can accept a string as well as coma separated values. The year can be 2 or 4 digits.
The last point could also be added to the RTC Command listing.

An example that could be included:-

RTC SETTIME date$+" "+time$
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 10:13am 02 Jan 2024
Copy link to clipboard 
Print this post

Thanks
Geoff Graham - http://geoffg.net
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 847
Posted: 07:14pm 02 Jan 2024
Copy link to clipboard 
Print this post

Hi Geoff et al,
To add to Phil's suggestion. On this thread  Jim has suggested:
  Quote  RTC SETTIME DATETIME$(NOW)
. Both work for me.

Cheers,

Andrew
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 11:07am 05 Jan 2024
Copy link to clipboard 
Print this post

Deleted, user error.
Edited 2024-01-05 21:38 by phil99
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4233
Posted: 01:57pm 11 Jan 2024
Copy link to clipboard 
Print this post

The coverage of GUI commands and GUI CONTROLS is not well covered in the 5.07.07 manual for the WebMite.

Volhout
PicomiteVGA PETSCII ROBOTS
 
ebbandflow
Newbie

Joined: 31/08/2023
Location: United States
Posts: 19
Posted: 12:00am 15 Jan 2024
Copy link to clipboard 
Print this post

I just noticed in the Picomite manuals that the 'table of built-in fonts' has font #8 listed as 6x4 instead of 4x6.
 
led-bloon

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 205
Posted: 02:15am 15 Jan 2024
Copy link to clipboard 
Print this post

PicoMite User Manual v5.08.00 Rev1

p121    PIO
       RP2040 chip used in the WebMite...

       Use: PIO assemble ".wrap target"....

p122    PIO DMA RX
       PIO DMA TX
       loopbackcount vs loopbackcounter in several places

p123    PIO INIT MACHINE
       This heading should be in-line with last paragraph p122

       PIO WRITE
       ...data()[,data1]? optional single integer write as with
       PIO READ? Unnecessary?

Multiple references to WebMite (think only one is valid)
led
Miss you George
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 02:57am 15 Jan 2024
Copy link to clipboard 
Print this post

@Volhout,
  matherp said  Gui controls are not supported on the WebMite.


Bill
Keep safe. Live long and prosper.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4233
Posted: 08:32am 15 Jan 2024
Copy link to clipboard 
Print this post

In picomite VGA manual.

Change "layer 0" to "active framebuffer" (L or N).



Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 10:00am 15 Jan 2024
Copy link to clipboard 
Print this post

  Quote  Change "layer 0" to "active framebuffer" (L or N).


The manual is correct. The layer referred to is the collision layer 0
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 11:47am 19 Jan 2024
Copy link to clipboard 
Print this post

Minor item for WebMite manual.
OpenWeather example on p30 the variable "tempr" produced "1000" after the temperature in the print statement and required Ctrl-C to exit.
Changed to "temp" and now all good.
Perhaps it was trying to use the TEMPR function?
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 07:12am 20 Jan 2024
Copy link to clipboard 
Print this post

Minor typo new PicoMite manual RTC command, top of p127
  Quote  These chips are I2C devices and must be connected to the two I2C pins as
specified by OPTION SYSTEM RTC with appropriate pullup resistors.

Change RTC to I2C.
 
     Page 3 of 5    
Print this page
© JAQ Software 2024