Example #1
0
        private static List <byte> exemploRetorno1()
        {
            //montagem da resposta no terminal em um buffer de bytes,
            //afim de ser enviado para o terminal de uma só vez

            List <byte> listCommands = new List <byte>();

            listCommands.AddRange(VP200Commands.normalFontSize());
            listCommands.AddRange(VP200Commands.clearScreen());
            listCommands.AddRange(VP200Commands.text("Queijo"));
            listCommands.AddRange(VP200Commands.enter());
            listCommands.AddRange(VP200Commands.text("500g"));
            listCommands.AddRange(VP200Commands.largeFontSize());
            listCommands.AddRange(VP200Commands.alignRightBottom());
            listCommands.AddRange(VP200Commands.text("R$ 5.99"));

            return(listCommands);
        }
Example #2
0
        private static List <byte> exemploRetorno2()
        {
            //montagem da resposta no terminal em um buffer de bytes,
            //afim de ser enviado para o terminal de uma só vez
            List <byte> listCommands = new List <byte>();

            listCommands.AddRange(VP200Commands.largeFontSize());
            listCommands.AddRange(VP200Commands.clearScreen());
            listCommands.AddRange(VP200Commands.alignCenterTop());
            listCommands.AddRange(VP200Commands.text("Oferta Especial!"));
            listCommands.AddRange(VP200Commands.normalFontSize());
            listCommands.AddRange(VP200Commands.alignCenter());
            listCommands.AddRange(VP200Commands.text("Agua 500 ml"));
            listCommands.AddRange(VP200Commands.largeFontSize());
            listCommands.AddRange(VP200Commands.alignCenterBottom());
            listCommands.AddRange(VP200Commands.text("R$ 0.69"));


            return(listCommands);
        }