Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fb: better ordering of pixels within ASMI words

  • Loading branch information...
commit 8ee6dab4f9eabc63c55485274845a2505211bde6 1 parent fdf7f10
Sébastien Bourdeauducq sbourdeauducq authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 milkymist/framebuffer/__init__.py
10 milkymist/framebuffer/__init__.py
View
@@ -13,9 +13,9 @@
_bpp = 32
_bpc = 10
_pixel_layout = [
- ("b", _bpc),
- ("g", _bpc),
("r", _bpc),
+ ("g", _bpc),
+ ("b", _bpc),
("pad", _bpp-3*_bpc)
]
@@ -23,9 +23,9 @@
_dac_layout = [
("hsync", 1),
("vsync", 1),
- ("b", _bpc_dac),
+ ("r", _bpc_dac),
("g", _bpc_dac),
- ("r", _bpc_dac)
+ ("b", _bpc_dac)
]
class _FrameInitiator(spi.SingleGenerator):
@@ -173,7 +173,7 @@ def __init__(self, asmiport, simulation=False):
adrbuffer = AbstractActor(plumbing.Buffer)
dma = dma_asmi.Reader(asmiport)
datbuffer = AbstractActor(plumbing.Buffer)
- cast = structuring.Cast(asmiport.hub.dw, packed_pixels)
+ cast = structuring.Cast(asmiport.hub.dw, packed_pixels, reverse_to=True)
unpack = structuring.Unpack(pack_factor, _pixel_layout)
vtg = VTG()
if simulation:
Please sign in to comment.
Something went wrong with that request. Please try again.