<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rockbox/apps/plugins/lua/include_lua, branch wolf3d</title>
<subtitle>My Rockbox tree</subtitle>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/'/>
<entry>
<title>lua add LCD_DEFAULT_FG, fix 2-bit screen fg/bg inversion</title>
<updated>2018-11-24T21:40:23+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-11-24T21:40:23+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=9ed486bdc747b505a5b7b868c363dcff3e718a0d'/>
<id>9ed486bdc747b505a5b7b868c363dcff3e718a0d</id>
<content type='text'>
Change-Id: Ibe2bc6602ff27524a3b96d9523780acbfbf03c76
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ibe2bc6602ff27524a3b96d9523780acbfbf03c76
</pre>
</div>
</content>
</entry>
<entry>
<title>Lua optimize combine and rework similar functions</title>
<updated>2018-11-02T17:00:06+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-11-01T18:20:33+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=f6e10b84882387e304467f22ea2f6126cbaa1264'/>
<id>f6e10b84882387e304467f22ea2f6126cbaa1264</id>
<content type='text'>
rb.strncasecmp
    strcasecmp just exclude count -&gt; rb.strncasecmp(s1, s2)

rb.backlight_brightness_set
    backlight_set_brightness -- redundant
    rb.backlight_brightness_use_setting -&gt; rb.backlight_brightness_set()

rb.buttonlight_brightness_set
    buttonlight_set_brightness -- redundant
    rb.buttonlight_brightness_use_setting -&gt; rb.buttonlight_brightness_set()

rb.mixer_frequency
    rb.mixer_set_frequency -&gt; mixer_frequency(freq)
    rb.mixer_get_frequency -&gt; mixer_frequency

rb.backlight_onoff
    rb.backlight_on  -&gt; rb.backlight_onoff(true)
    rb.backlight_off -&gt; rb.backlight_onoff(false)

rb.touchscreen_mode
    rb.touchscreen_set_mode -&gt; rb.touchscreen_mode(mode)
    rb.touchscreen_get_mode -&gt; rb.touchscreen_mode()

rb.schedule_cpu_boost
    rb.trigger_cpu_boost -&gt; rb.schedule_cpu_boost(true)
    rb.cancel_cpu_boost -&gt; rb.schedule_cpu_boost(false)

Includes rbcompat.lua for backwards compatibility
if your script is broken by this change you simply add
`require("rbcompat")` to the top for the old functionality

Change-Id: Ibffd79a0d9be6d7d6a65cc4af5c0a1c6a0f3f94d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rb.strncasecmp
    strcasecmp just exclude count -&gt; rb.strncasecmp(s1, s2)

rb.backlight_brightness_set
    backlight_set_brightness -- redundant
    rb.backlight_brightness_use_setting -&gt; rb.backlight_brightness_set()

rb.buttonlight_brightness_set
    buttonlight_set_brightness -- redundant
    rb.buttonlight_brightness_use_setting -&gt; rb.buttonlight_brightness_set()

rb.mixer_frequency
    rb.mixer_set_frequency -&gt; mixer_frequency(freq)
    rb.mixer_get_frequency -&gt; mixer_frequency

rb.backlight_onoff
    rb.backlight_on  -&gt; rb.backlight_onoff(true)
    rb.backlight_off -&gt; rb.backlight_onoff(false)

rb.touchscreen_mode
    rb.touchscreen_set_mode -&gt; rb.touchscreen_mode(mode)
    rb.touchscreen_get_mode -&gt; rb.touchscreen_mode()

rb.schedule_cpu_boost
    rb.trigger_cpu_boost -&gt; rb.schedule_cpu_boost(true)
    rb.cancel_cpu_boost -&gt; rb.schedule_cpu_boost(false)

Includes rbcompat.lua for backwards compatibility
if your script is broken by this change you simply add
`require("rbcompat")` to the top for the old functionality

Change-Id: Ibffd79a0d9be6d7d6a65cc4af5c0a1c6a0f3f94d
</pre>
</div>
</content>
</entry>
<entry>
<title>Lua Add underscores in audio, pcm, playlist functions</title>
<updated>2018-10-31T13:23:00+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-31T13:23:00+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=bbfe4778114c76e23e9c391225da2d6f74812735'/>
<id>bbfe4778114c76e23e9c391225da2d6f74812735</id>
<content type='text'>
Lessen confusion for end users looking for the underlying function names in
plugin.h

Change-Id: I6662dc7bd9f22d83af372b3d3c5af53d9a1eac9a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Lessen confusion for end users looking for the underlying function names in
plugin.h

Change-Id: I6662dc7bd9f22d83af372b3d3c5af53d9a1eac9a
</pre>
</div>
</content>
</entry>
<entry>
<title>lua consolidate pcm_ functions</title>
<updated>2018-10-30T18:16:01+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-30T17:56:36+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=74fe5203d06aee3ad3498fa9164762cfa1efa3d5'/>
<id>74fe5203d06aee3ad3498fa9164762cfa1efa3d5</id>
<content type='text'>
The way to call the pcm functions has changed
rb.pcm("option", var)
rb.pcm_set_frequency(freq) = becomes rb.pcm("pcmsetfrequency", freq)

added pcm.lua to the includes for conversion to old functions
if your script is broken by this change you simply add
`require("pcm")` to the top for the old functionality

added rb.pcm("calculatepeaks")

Change-Id: I092057b0c0b5575e567862661f122da1ca2680e8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The way to call the pcm functions has changed
rb.pcm("option", var)
rb.pcm_set_frequency(freq) = becomes rb.pcm("pcmsetfrequency", freq)

added pcm.lua to the includes for conversion to old functions
if your script is broken by this change you simply add
`require("pcm")` to the top for the old functionality

added rb.pcm("calculatepeaks")

Change-Id: I092057b0c0b5575e567862661f122da1ca2680e8
</pre>
</div>
</content>
</entry>
<entry>
<title>lua consolidate playlist_ functions</title>
<updated>2018-10-25T09:59:42+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-25T01:40:01+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=e4c5f5d412d94b10545980eea0b47d98e79712da'/>
<id>e4c5f5d412d94b10545980eea0b47d98e79712da</id>
<content type='text'>
The way to call the playlist functions has changed
rb.playlist("option", var)
rb.playlist_add(filename) = becomes rb.playlist("add", filename)

added playlist.lua to the includes for conversion to old functions
if your script is broken by this change you simply add `require("playlist")`
to the top for the old functionality

added rb.playlist_tracks(dir, filename) to playlist.lua
this will allow you to add all tracks in a playlist.m3u8
to a lua table

Change-Id: I87fcc56be365d8495d214f069331b6ddbfbef1db
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The way to call the playlist functions has changed
rb.playlist("option", var)
rb.playlist_add(filename) = becomes rb.playlist("add", filename)

added playlist.lua to the includes for conversion to old functions
if your script is broken by this change you simply add `require("playlist")`
to the top for the old functionality

added rb.playlist_tracks(dir, filename) to playlist.lua
this will allow you to add all tracks in a playlist.m3u8
to a lua table

Change-Id: I87fcc56be365d8495d214f069331b6ddbfbef1db
</pre>
</div>
</content>
</entry>
<entry>
<title>lua add audio_play consolidate audio_ functions</title>
<updated>2018-10-24T16:37:29+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-24T14:49:52+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=b670fcd50d42085a2db978bbcf2ccfd889d740ef'/>
<id>b670fcd50d42085a2db978bbcf2ccfd889d740ef</id>
<content type='text'>
audio_play was removed from the rocklib I assume due to inconsistent
behavior I've readded it with a check for audio paused which instead
uses rewind/ff and then resumes audio

the way to call the audio functions has changed as well
rb.audio("option", var)
so rb.audio_play(0, 0) becomes rb.audio("play", 0, 0)
audio_audio_flush_and_reload_tracks becomes
rb.audio("flushandreloadtracks")

all functions except audio("getfilepos") return the previous (or still current)
status

added audio.lua to the includes for conversion to old functions
if your script is broken by this change you simply add `require("audio")`
to the top for the old functionality

Change-Id: I364adf0c85d9c12b98cde29c26fbe5ee05b9d331
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
audio_play was removed from the rocklib I assume due to inconsistent
behavior I've readded it with a check for audio paused which instead
uses rewind/ff and then resumes audio

the way to call the audio functions has changed as well
rb.audio("option", var)
so rb.audio_play(0, 0) becomes rb.audio("play", 0, 0)
audio_audio_flush_and_reload_tracks becomes
rb.audio("flushandreloadtracks")

all functions except audio("getfilepos") return the previous (or still current)
status

added audio.lua to the includes for conversion to old functions
if your script is broken by this change you simply add `require("audio")`
to the top for the old functionality

Change-Id: I364adf0c85d9c12b98cde29c26fbe5ee05b9d331
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix red rocklib_img 32-24 bit targets</title>
<updated>2018-10-08T23:59:50+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-10-08T23:52:01+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=046cc497ad15222974201bef443109165973e3b9'/>
<id>046cc497ad15222974201bef443109165973e3b9</id>
<content type='text'>
int is an incompatible type for targets that have 32bit fb_data
need to use FB_SCALARPACK for them

Change-Id: Ib3b5ff19c54d8d1bb76af33d0538a17a71301514
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
int is an incompatible type for targets that have 32bit fb_data
need to use FB_SCALARPACK for them

Change-Id: Ib3b5ff19c54d8d1bb76af33d0538a17a71301514
</pre>
</div>
</content>
</entry>
<entry>
<title>Clean up rocklib_img</title>
<updated>2018-10-08T23:02:25+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-09-23T16:25:31+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=c0682e094414d0748456d0b01000727039ff701c'/>
<id>c0682e094414d0748456d0b01000727039ff701c</id>
<content type='text'>
optimize both size and speed
fix invert for color screens

Change-Id: I7edecae32dcb3daf5b3ed984a0e5b3d463269e60
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
optimize both size and speed
fix invert for color screens

Change-Id: I7edecae32dcb3daf5b3ed984a0e5b3d463269e60
</pre>
</div>
</content>
</entry>
<entry>
<title>Lua -- Fix device hang when scroll function active on clear_screen</title>
<updated>2018-07-27T13:09:55+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-07-27T13:09:55+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=400603abdfb4ba7566e0cae8dbed9268f06716dc'/>
<id>400603abdfb4ba7566e0cae8dbed9268f06716dc</id>
<content type='text'>
I previously noticed that manually clearing the framebuffer while scroll
function was active caused lua to crash

I could reproduce in sim and on device but I thought using the plugin
supplied rb-&gt;lcd_clear_screen was immune to this issue

Unfortunately some devices exhibit this behavior with the plugin function
as well

This patch adds rb-&gt;lcd_scroll_stop() before lcd_clear_screen at lua start-up
and to the supplied include file lcd.lua

Change-Id: I9800145e5c834ea27df5db5f1bca50b0d40faa49
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I previously noticed that manually clearing the framebuffer while scroll
function was active caused lua to crash

I could reproduce in sim and on device but I thought using the plugin
supplied rb-&gt;lcd_clear_screen was immune to this issue

Unfortunately some devices exhibit this behavior with the plugin function
as well

This patch adds rb-&gt;lcd_scroll_stop() before lcd_clear_screen at lua start-up
and to the supplied include file lcd.lua

Change-Id: I9800145e5c834ea27df5db5f1bca50b0d40faa49
</pre>
</div>
</content>
</entry>
<entry>
<title>Try # 3 for lua make file</title>
<updated>2018-07-24T05:31:40+00:00</updated>
<author>
<name>William Wilgus</name>
<email>me.theuser@yahoo.com</email>
</author>
<published>2018-07-24T05:31:40+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=1482a31134d411996298d5c0c8db8aa9a029c3b1'/>
<id>1482a31134d411996298d5c0c8db8aa9a029c3b1</id>
<content type='text'>
Change-Id: I888612f3339ffcde28602a4e739b08f630de9c28
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I888612f3339ffcde28602a4e739b08f630de9c28
</pre>
</div>
</content>
</entry>
</feed>
